Rob

Rob

  • NA
  • 12
  • 0

Writing a CSV

Aug 24 2008 6:09 PM

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)