64
Procedure Load;
Var
F:Text;
Name:String;
i,j:Byte;
Buf:String;
IOs:Integer;
Begin
clrscr;
write(“Enter FileName:”);Readln(Name);
write(“File Read -”);
Assign(F,Name);
Reset(F);
Readln(F,NumN);
for i:=1 to NumN do
Begin
Readln(F,N[i].NumM);
for j:=1 to N[i].NumM do
Begin
Readln(F,Buf);
Val(Copy(Buf,1,Pos(“,”,Buf)-1),N[i].M[J,1,1],IOs);
Delete(Buf,1,Pos(“,”,Buf));
Val(Copy(Buf,1,Pos(“,”,Buf)-1),N[i].M[j,1,2],IOs);
Delete(Buf,1,Pos(“,”,Buf));
Val(Copy(Buf,1,Pos(“,”,Buf)-1),N[i].M[j,2,1],IOs);
Delete(Buf,1,Pos(“,”,Buf));
Val(Copy(Buf,1,Pos(“,”,Buf)-1),N[i].M[j,2,2],IOs);
Delete(Buf,1,Pos(“,”,Buf));
Val(Copy(Buf,1,Pos(“,”,Buf)-1),N[i].M[j,3,1],IOs);
Delete(Buf,1,Pos(“,”,Buf));
Val(Buf,N[i].M[j,3,2],IOs);
End;
End;
Readln(F,S);
Close(F);
TestStart;
Writeln(“Ok”);
End;
Procedure Save;
Var
I:Byte;
F:Text;
Name:String;
Begin
clrscr;
write(“Enter FileName:”);Readln(Name);
Assign(F,Name);
Rewrite(F);
if Victory then