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();
读写文本文件
猜你喜欢
转载自www.cnblogs.com/miss-bug/p/9138453.html
今日推荐
周排行