private static void WriteLine(string text, bool append)
{
// open file
// If an error occurs throw it to the caller.
try
{
StreamWriter Writer = new StreamWriter(FunkyLogFilename, append, Encoding.UTF8);
if (!String.IsNullOrEmpty(text)) Writer.WriteLine(text);
Writer.Flush();
Writer.Close();
}
catch
{
throw;
}
}