Saving from List to txt

后端 未结 7 1804
生来不讨喜
生来不讨喜 2020-12-03 13:26

I want my program to read from two text files into one List. The List is sorting and cleaning duplicates.

I want the

7条回答
  •  失恋的感觉
    2020-12-03 14:16

    Loop through the list, writing each line individually:

    StreamWriter file = new System.IO.StreamWriter(speichern);
    foreach(string line in ausgabeListe)
        file.WriteLine(line);
    file.Close();
    

提交回复
热议问题