存盤日志
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); } }
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/64869.html
標籤:C#
上一篇:Github幫助功能的使用
下一篇:多播委托
