Click here to Skip to main content
12,819,248 members (30,873 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# CSV
Update on the question below:
I used this article[^] to save the values to a CSV-file. I've really got a bunch of values to store, so that will mean that I have to write a bunch of columns (that's not the problem). So my question is, is there a maximum for the columns in a CSV-file, or does the fact that I've got so much columns not matter?

Thanks in advance.

Original question:
I've created a program which calculates various naval stuff. Now is the time to save the users input, the calculations and the outcomes. Thing is, my colleagues need to calculate for different clients, for which they create different project-numbers. So I want to save all the values of my program, for these various projects. I will show the projects as start screen, in a DataGridView. Based on the selected item, the program must load the values.

I've taken a look at a previous solution from someone else, using a database for this, but my question is: is there anyway to do this, without the use of a database. Because I'm new to databases and not so experienced in C# as well. So if anyone has a tip, reference or small example, I appreciate it.
Posted 19-Nov-12 3:15am
Frans Jan2.9K
Updated 19-Nov-12 23:00pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There may be practical limits such as, file size, time taken to read/write etc.
But other than that there is no limit.

Another, possibly better solution might be to use XML. It will give greater flexibility, but also be slightly more complex.
Frans Jan 20-Nov-12 10:24am
Thanks for the answer and tip about XML. I gave it a try, but it turns out, the best way is to use a database. So I will put my focus on that.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

you should read this links

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 20 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100