PIbd-22. Shabunov O.A. Lab work 06 #6
@ -80,6 +80,9 @@ namespace AirBomber.Generics
|
||||
|
||||
public bool LoadData(string FileName)
|
||||
{
|
||||
if (!File.Exists(FileName))
|
||||
return false;
|
||||
|
||||
using (StreamReader reader = new StreamReader(FileName))
|
||||
{
|
||||
if (reader.ReadLine() != "BomberStorage")
|
||||
|
Loading…
x
Reference in New Issue
Block a user