J
jxgxy
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.btnReadClick(Sender: TObject);
var
MyStream:TFileStream;
i:Int64;
begin
MyStream := TFileStream.Create('c:/a.dat',fmOpenWrite);
MyStream.Read(i,8);
edt1.Text := IntToStr(i);
MyStream.Free;
end;
procedure TForm1.btnWriteClick(Sender: TObject);
var
MyStream:TFileStream;
i:Int64;
begin
MyStream := TFileStream.Create('c:/a.dat',fmCreate);
i := 15000000000;
MyStream.Write(i,8);
MyStream.Free;
end;
我将15000000000写入文件后,再读出来,怎么不是15000000000,而是19316542400558849
有办法写入150亿,读出来也是150亿不?
谢谢.
var
MyStream:TFileStream;
i:Int64;
begin
MyStream := TFileStream.Create('c:/a.dat',fmOpenWrite);
MyStream.Read(i,8);
edt1.Text := IntToStr(i);
MyStream.Free;
end;
procedure TForm1.btnWriteClick(Sender: TObject);
var
MyStream:TFileStream;
i:Int64;
begin
MyStream := TFileStream.Create('c:/a.dat',fmCreate);
i := 15000000000;
MyStream.Write(i,8);
MyStream.Free;
end;
我将15000000000写入文件后,再读出来,怎么不是15000000000,而是19316542400558849
有办法写入150亿,读出来也是150亿不?
谢谢.