static void Main(string[] args) { using (var commandLog = new StreamWriter(@"log.txt")) { commandLog.WriteLine($"New game: {DateTime.Now}"); } var inputReader = new CommandReader(); inputReader.CommandRecieved += InputReader_CommandRecieved; inputReader.Run(); }