Исправления
This commit is contained in:
parent
99886df933
commit
47faa0de7e
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user