Writing data into CSV file in C#

后端 未结 15 1313
清酒与你
清酒与你 2020-11-22 17:15

I am trying to write into a csv file row by row using C# language. Here is my function

string first = reader[0].ToString();
string second=image.         


        
15条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 17:41

    Writing csv files by hand can be difficult because your data might contain commas and newlines. I suggest you use an existing library instead.

    This question mentions a few options.

    Are there any CSV readers/writer libraries in C#?

提交回复
热议问题