标签:ati datetime pat mod void path file append bsp
public static void TextWriter(string Msg)
{
string path = @"D: " + "log.txt";
//文件流
FileStream file = new FileStream(path, FileMode.Append);
StreamWriter sw = new StreamWriter(file);
sw.WriteLine(DateTime.Now.ToString("yyyyMMdd hh:mm ->" + Msg));
file.Close();
sw.Close();
}
标签:ati datetime pat mod void path file append bsp
原文地址:https://www.cnblogs.com/cf425/p/13215639.html