File.WriteAllText Doesn't Preserve Newline

前端 未结 1 1245
滥情空心
滥情空心 2021-01-14 01:45

The Output of this code

string fileDateTime = \"StepsGA-\" + DateTime.Now.ToString(\"dd-MM-yyyy-HH-mm-ss\") + \".txt\";
string fname = System.IO.Path.Combin         


        
相关标签:
1条回答
  • 2021-01-14 01:53

    Got the answer ! Instead of \n I needed to use Environment.NewLine.

    0 讨论(0)
提交回复
热议问题