System.IO.StreamWriter

string path = @"D:\a.txt";

System.IO.StreamWriter swOut = new System.IO.StreamWriter(path, false, System.Text.Encoding.Default);
swOut.WriteLine(strA);
swOut.Flush();
swOut.Close();

 

posted @ 2014-07-02 14:21  vivianC  阅读(332)  评论(0编辑  收藏  举报