private static void Command() { Console.WriteLine("Введите команду"); string command = Console.ReadLine(); if (openr.IsMatch(command)) { char[] c = { ' ', '.' }; handler.Path = command.Split(c, StringSplitOptions.RemoveEmptyEntries)[1]; handler.Open(); } if (changer.IsMatch(command)) { char[] c = { ' ', '.' }; handler.Path = command.Split(c, StringSplitOptions.RemoveEmptyEntries)[1]; handler.Chenge(); } if (saver.IsMatch(command)) { handler.Save(); return; } if (creater.IsMatch(command)) { char[] c = { ' ', '.' }; handler.Path = command.Split(c, StringSplitOptions.RemoveEmptyEntries)[1]; handler.Create(); } Command(); }