Creating a CSV File in C#

后端 未结 3 783
温柔的废话
温柔的废话 2021-01-13 18:25

I am trying to created a csv file where each entry is inputed by the user. Once one set of of values have been entered it should move on to the next. However I cannot seem t

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-13 19:07

    You have to open the file in append mode, like this:

    System.IO.StreamWriter objWriter;
    objWriter = new File.AppendText(file_name);
    

提交回复
热议问题