I am trying to write into a csv file row by row using C# language. Here is my function
csv
string first = reader[0].ToString(); string second=image.
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#?