System.IO.File.AppendAllText(@"F:WriteText.txt", "日志内容“+"\r\n"); 转载于:https://www.cnblogs.com/LZXX/p/9078101.html