1
Answer

Writing a CSV

Rob

Rob

16y
13.8k
1

Hi,

In my program i have this method to write a CSV file.

StreamWriter writer = new StreamWriter(Environment.SystemDirectory + "\\Result.csv", false);

writer.Write(Convert.ToString(inputA) + ",");

writer.Write(Convert.ToString(inputB) + ",");

writer.Write(Convert.ToString(inputC) + ",");

writer.Write(Convert.ToString(inputD) + ",");

writer.Close();

In the CSV file i am only using one line. I don't want to update all the cells all at the same time. So sometimes i only want to write to one cell. How can i write to the CSV file and skip the first cell? So the data in the first cell remains the same.

 

Hope to hear a response soon,

 

Rob

Answers (1)
Next Recommended Forum