/// <summary> /// Simple Logging method that allows quickly writing a string to a file /// </summary> /// <param name="output"></param> /// <param name="filename"></param> public static void LogString(string output, string filename) { StreamWriter Writer = new StreamWriter(filename, true); Writer.WriteLine(DateTime.Now.ToString() + " - " + output); Writer.Close(); }This version appends to the end of the file.