标签:
using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\testDir\test2.txt", true)) { file.WriteLine(msglist[i].Text);// 直接追加文件末尾,换行 }
C#写入文件
原文地址:http://www.cnblogs.com/hellochenchen/p/5426054.html