P
PLWang
Unregistered / Unconfirmed
GUEST, unregistred user!
var str, s : string;
f: TextFile;
begin
AssignFile(f, 'D:/sgip/logdir0504/20050401_LogD.log');
while not SeekEof(f) do begin
Inc(i);
Readln(f, str)
..........
end;
CloseFile(f);
showmessage(inttostr(i));
很简单的代码 只是一行一行读 可是执行时总是停在SeekEof(f)处
raised exception class EInOutError with message 'I/O error 104'
f: TextFile;
begin
AssignFile(f, 'D:/sgip/logdir0504/20050401_LogD.log');
while not SeekEof(f) do begin
Inc(i);
Readln(f, str)
..........
end;
CloseFile(f);
showmessage(inttostr(i));
很简单的代码 只是一行一行读 可是执行时总是停在SeekEof(f)处
raised exception class EInOutError with message 'I/O error 104'