using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"d: estErrorLog.txt", true)) { file.WriteLine(System.DateTime.Now+":"); file.WriteLine("信息!"); file.Dispose(); }
using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"d: estErrorLog.txt", true)) { file.WriteLine(System.DateTime.Now+":"); file.WriteLine("信息!"); file.Dispose(); }