using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\testDir\test2.txt", true)) { file.WriteLine(msglist[i].Text);// 直接追加文件末尾,换行 }
时间: 2024-10-05 06:16:04
using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\testDir\test2.txt", true)) { file.WriteLine(msglist[i].Text);// 直接追加文件末尾,换行 }