System.IO.File.AppendAllText(@"c:\aa.txt", "dno111:" + 11111 + "\r\n");
System.IO.File.AppendAllText(@"c:\aa.txt", "dno22:" + db.Device.Where(c => c.State == 1).Count() + "\r\n");
将会在C盘下生成一个aa.txt文档
System.IO.File.AppendAllText(@"c:\aa.txt", "dno111:" + 11111 + "\r\n");
System.IO.File.AppendAllText(@"c:\aa.txt", "dno22:" + db.Device.Where(c => c.State == 1).Count() + "\r\n");
将会在C盘下生成一个aa.txt文档
本文标题:.Net打印错误日志
本文链接:https://www.haomeiwen.com/subject/fcfbgttx.html
网友评论