L
leadroy
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.bsSkinButton1Click(Sender: TObject);
var
f: TextFile;
size: Longint;
S: string;
y: Integer;
x:string;
begin
try
x:='测试';
AssignFile(f,DI.Caption+c.SelectedItem.FileName);
reset(f);
while not eof(f) do
begin
ReadLn(f,S);
if Pos('00:00',S)>0 then
begin
Writeln(f,x);
showmessage('写入成功');
Flush(f);
CloseFile(f);
break;
end;
end;
except
CloseFile(f);
end;
end;
就在 Writeln(f,x);出错,错误为I/O error 105
var
f: TextFile;
size: Longint;
S: string;
y: Integer;
x:string;
begin
try
x:='测试';
AssignFile(f,DI.Caption+c.SelectedItem.FileName);
reset(f);
while not eof(f) do
begin
ReadLn(f,S);
if Pos('00:00',S)>0 then
begin
Writeln(f,x);
showmessage('写入成功');
Flush(f);
CloseFile(f);
break;
end;
end;
except
CloseFile(f);
end;
end;
就在 Writeln(f,x);出错,错误为I/O error 105