13,8 → 13,6 |
public static void appendText(string text) |
{ |
// Appends passed string into Debug.txt |
if (!File.Exists(debugLocation)) |
File.Create(debugLocation); |
using (StreamWriter sw = File.AppendText(debugLocation)) |
{ |
sw.Write("[" + DateTime.Now.ToLongDateString() + " | " + DateTime.Now.ToLongTimeString() + "] -- "); |
33,8 → 31,6 |
} |
public static void startNewSession() |
{ |
if (!File.Exists(debugLocation)) |
File.Create(debugLocation); |
using (StreamWriter sw = File.AppendText(debugLocation)) |
{ |
sw.Write("-- New Session --\r\n"); |