var
fs: TFileStream;
array1,array2,array3,array4,array5,array6,array7,array8,array9,array10:array[0..499] of Longword;
begin
//保存
try
fs:= TFileStream.Create('arrays.dat',fmOpenWrite);
fs.Write(array1,SizeOf(array1));
fs.Write(array2,SizeOf(array2));
fs.Write(array3,SizeOf(array3));
fs.Write(array4,SizeOf(array4));
fs.Write(array5,SizeOf(array5));
fs.Write(array6,SizeOf(array6));
fs.Write(array7,SizeOf(array7));
fs.Write(array8,SizeOf(array8));
fs.Write(array9,SizeOf(array9));
fs.Write(array10,SizeOf(array10));
finally
FreeAndNil(fs);
end;
//读取
try
fs:= TFileStream.Create('arrays.dat',fmOpenRead);
fs.Read(array1,SizeOf(array1));
fs.Read(array2,SizeOf(array2));
fs.Read(array3,SizeOf(array3));
fs.Read(array4,SizeOf(array4));
fs.Read(array5,SizeOf(array5));
fs.Read(array6,SizeOf(array6));
fs.Read(array7,SizeOf(array7));
fs.Read(array8,SizeOf(array8));
fs.Read(array9,SizeOf(array9));
fs.Read(array10,SizeOf(array10));
finally
FreeAndNil(fs);
end;
end;