Created
December 9, 2016 19:54
-
-
Save propagated/cb6cbb19bf0c809561712c23fb4ce2bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Log(string message, string path = "LOG.txt") | |
{ | |
Console.WriteLine(message); | |
using (System.IO.FileStream sw = new System.IO.FileStream(path, System.IO.FileMode.Append)) | |
{ | |
using (System.IO.StreamWriter sw2 = new System.IO.StreamWriter(sw)) | |
{ | |
sw2.WriteLine(message); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment