Nev*_*hai 4 c# text new-operator
我需要将一个字符串写入C#的文本文件中,每个字符串都在新行上...我该怎么做?
dtb*_*dtb 13
您可以使用File.WriteAllLines:
string[] mystrings = new string[] { "Foo", "Bar", "Baz", "Qux" }; System.IO.File.WriteAllLines("myfile.txt", mystrings);
归档时间:
16 年,4 月 前
查看次数:
17968 次
最近记录:
12 年,1 月 前