public static void DoDefaultRecord(string Text)//追加式 { writer = new StreamWriter(DefaultRecordPath, true); writer.WriteLine((MyTime.GetNowTimeCode(1) + " >>> " + Text).Replace("\n", Environment.NewLine)); writer.Close(); }
public static void CreateUniqueRecordFile(string Text) { writer = new StreamWriter(RecordsDirPath + "\\" + MyTime.GetNowTimeCode() + ".txt", false); writer.Write(Text.Replace("\n", Environment.NewLine)); writer.Close(); }