首页 > 代码库 > System.IO.StreamWriter

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();