예제 #1
0
 public static void FilelInput()
 {
     Program.array = file.Load(Entering.EnterStringPrompt("Введіть назву файлу"));
     if (!file.fileExists)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("\tТакого файлу не існує!");
         Console.ForegroundColor = ConsoleColor.Black;
     }
     else if (!file.fileValid)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("\tДані файлу не відповідають формату csv!");
         Console.ForegroundColor = ConsoleColor.Black;
     }
 }