C# 存储日志
程序员文章站
2022-06-05 08:48:44
存储日志 public void log(string neirong) { var path = @"D:\xx文件名xx\Log\" + "日志" + ".log"; using (StreamWriter st = new StreamWriter(path, append: true)) { ......
存储日志
public void log(string neirong) { var path = @"d:\xx文件名xx\log\" + "日志" + ".log"; using (streamwriter st = new streamwriter(path, append: true)) { st.writeline( " " + datetime.now + " " + neirong); } }
下一篇: go随聊-安全散列算法SHA256