Click here to Skip to main content
15,895,557 members

Save user input values of an application for various 'projects' in CSV-file

Frans Jan asked:

Open original thread
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.
Tags: C#, Windows Forms, CSV

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900