also das is vielleicht ein bischen einfacher:
Delphi-Quellcode:
type TMyArray = array[0..12,0..2] of integer;
procedure Save(Arr: TMyArray);
var
f: file of TMyArray;
begin
AssignFile(f, FILENAME);
Rewrite(f);
try
Write(f,Arr);
finally
CloseFile(f);
end;
end;
procedure Load(var Arr: TMyArray);
var
f: file of TMyArray;
begin
AssignFile(f, FILENAME);
Reset(f);
try
Read(f,Arr);
finally
CloseFile(f);
end;
end;