private void WriteToLog(string file, string message)
{
using (StreamWriter w = File.AppendText(file))
{
w.WriteLine( DateTime.Now.ToString() + ": " + message); w.Close();
}
}
No comments:
Post a Comment