/// <summary> /// Writes one or more lines of text to the output without a trailing newline. /// </summary> public void Write(string text) { TheWriter.Write(text); if (Debugging && (DebugFile != null) && (DebugFile != string.Empty)) { File.AppendAllText(DebugFile, text); } }
/// <summary> /// Writes one or more lines of text to the output with a trailing newline. /// </summary> public void WriteText(string text) { TheWriter.WriteLine(text); if (Debugging && (DebugFile != null) && (DebugFile != string.Empty)) { File.AppendAllText(DebugFile, text + System.Environment.NewLine); } }
private void CloseWrite() { TheWriter.Close(); }