static void Main(string[] args) { if (args.Length > 0) { var pet = new Petooh(); pet.Listen(System.IO.File.ReadAllText(args[0])); Console.WriteLine(pet.Told); } else { Console.WriteLine("USAGE: Petooh.exe /path/to/file.koko"); } Console.WriteLine(); Console.WriteLine("Press ANY key"); Console.ReadKey(); }
static void Main(string[] args) { if (args.Length > 0) { var pet = new Petooh(); pet.Listen(System.IO.File.ReadAllText(args[0])); Console.WriteLine(pet.Told); } else { Console.WriteLine("USAGE: Petooh.exe /path/to/file.koko"); } Console.WriteLine(); Console.WriteLine("Press ANY key"); Console.ReadKey(); }