L
liuguilg
Unregistered / Unconfirmed
GUEST, unregistred user!
if not dataset.Active then exit;
if dataset.RecordCount<1 then exit;
if FileExists('aa.txt') then
begin
DeleteFile('aa.txt');
dataset.Recordset.Save('aa.txt',0);
end
else
dataset.Recordset.Save('aa.txt',0);
ff:=TFileStream.Create('aa.txt',fmCreate);// fmopenread);
ShowMessage(IntToStr(ff.Size));
明明已经建立了aa.txt,而且有数据,怎么ff.Size=0了,
if dataset.RecordCount<1 then exit;
if FileExists('aa.txt') then
begin
DeleteFile('aa.txt');
dataset.Recordset.Save('aa.txt',0);
end
else
dataset.Recordset.Save('aa.txt',0);
ff:=TFileStream.Create('aa.txt',fmCreate);// fmopenread);
ShowMessage(IntToStr(ff.Size));
明明已经建立了aa.txt,而且有数据,怎么ff.Size=0了,