예제 #1
0
 public string AddNewFile(string s, List<Car> list, string endPath, string path, AbstractClass rep)
 {
     list.Clear();
     Console.WriteLine("Файлы :");
     Info(s);
     Console.WriteLine("Введите значение");
     if (endPath != null)
     {
         rep.CloseFile();
         path = GetFile(s);
         rep.ReadFile(path, list);
     }
     else
     {
         do
         {
             path = Console.ReadLine();
         } while (!(path.EndsWith(s)));
     }
     return path;
 }