Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 54 → Rev 55

/SWAT Office App/trunk/SWAT Office App/DebugText.cs
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");