private static void print(StreamWriter sw, string mlog, bool screen)
{
DateTime ts = DateTime.Now;
sw.WriteLine(ts + " " + mlog);
if (screen == true)
{
Console.WriteLine(mlog);
}
}
I would use print (sw,"write here", false) to call. 90% chance I will use false. how to make it the default to be false that way I dont have to do the extra type when I do the call?