Sorokin_P.V. Lab Work 6 #6

Merged
eegov merged 7 commits from LabWork06 into LabWork05 2022-11-11 09:01:35 +04:00
Showing only changes of commit 3a7188b36e - Show all commits

View File

@ -68,8 +68,8 @@ namespace Liner
}
using (StreamReader sr = new(filename))
{
string str = sr.ReadLine();
if (!str.Contains("MapsCollection"))
string str = "";
if ((str = sr.ReadLine()) == null || !str.Contains("MapsCollection"))
{
return false;
}