function ReadBinaryStream(const Section, Name: string; Value: TStream): Integer; virtual;
楼主看清楚函数的参数,你把要写的东西全读到一个TStream里再写下去。
var
TmpStream: TStream;
begin
TmpStream := TMemoryStream.Create(nil);
try
TmpStream.write(MyArray[0], SizeOf(MyArray));
Inifile.WriteBinaryStream('1', '1', TmpStream);
finally
TmpStream.Free;
end;
end;
读出来反之;