Borschevskaya A.A. Lab Work 6 #6

Closed
pgirl1 wants to merge 10 commits from lab6 into lab5
Showing only changes of commit 47faa0de7e - Show all commits

View File

@ -118,9 +118,8 @@ namespace ArmoredCar
{
if (!File.Exists(filename))
{
throw new Exception("Файл не найден");
}
string bufferTextFromFile = "";
return false;
}
using (StreamReader fs = new(filename))
{
@ -131,8 +130,7 @@ namespace ArmoredCar
//очищаем записи
_mapStorages.Clear();
while ((line = fs.ReadLine()) != null)
{
bufferTextFromFile += line;
{
var elem = line.Split(separatorDict);
AbstractMap map = null;
switch (elem[1])