将应用程序的用户输入值保存为CSV文件中的各种“项目" [英] Save user input values of an application for various 'projects' in CSV-file

查看:64
本文介绍了将应用程序的用户输入值保存为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.

推荐答案

可能存在一些实际限制,例如文件大小,读取/写入时间等
但是除此之外,没有任何限制.

另一个可能更好的解决方案可能是使用XML.它将提供更大的灵活性,但也会稍微复杂些.
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.


您应该阅读此链接
链接
链接
you should read this links
Link
Link


这篇关于将应用程序的用户输入值保存为CSV文件中的各种“项目"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆