System.IO.File.WriteAllLines("C:\1.txt", str, Encoding.UTF8); 我这样写,会在文件的最后添加一个空行。 string[] str = new string[] { "1", "22", "333 ...