FileInfo myFile = new FileInfo(@"C:\temp\utf-8.txt"); 
StreamWriter sw = myFile.CreateText();

string[] strs = { "早上好", "下午好" };
foreach (var s in strs)
{
sw.WriteLine(s);
}
sw.Close();
posted on 2018-06-05 10:33  Miss_Bug  阅读(75)  评论(0编辑  收藏  举报