Исправления

This commit is contained in:
prodigygirl 2022-11-08 08:30:46 +04:00
parent 99886df933
commit 47faa0de7e

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])