Saving from List to txt

后端 未结 7 1803
生来不讨喜
生来不讨喜 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();
    
    0 讨论(0)
提交回复
热议问题