ivan.....
2015年10月15日 星期四
C# winForm 儲存文字檔[ .txt ]的格式定義為[ Unicode ]
FileStream fs = new FileStream(@"
C:\test.txt
", System.IO.FileMode.OpenOrCreate);
StreamWriter sw = new StreamWriter(fs, System.Text.Encoding.
Unicode
);
sw.Write("メールマガジン「.NETプログラミング研究」では");
sw.Flush();
sw.Close();
fs.Close();
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言