private static void WriteTxtLog(string title,string content) { string filePath = System.Environment.CurrentDirectory + "\\log.txt"; if (!File.Exists(filePath)) { File.Create(filePath).Dispose(); } File.AppendAllText(filePath, DateTime.Now.ToString() + " - "+ title + " : " + content + "\r\n"); }

浙公网安备 33010602011771号