有意思,听…
我的办法就是
var
buf : integer;
FileVar : File of Byte;
begin
AssignFile(FileVar,'c:/1.dat');
rewrite(FileVar,1024*1024*1024);
write(FileVar,Buf);
end
To mikedeakins:
一样的,也要很长的时间(硬盘狂闪不已):
procedure TForm1.Button1Click(Sender: TObject);
var
f:integer;
buf:^byte;
begin
f:=filecreate('c:/test.dat');
fileseek(f,$12345670,2);
filewrite(f,buf,1);
fileclose(f);
end;