Var
RF,WF:Textfile;
S:STRING;
begin
AssignFile(RF,'c:/xxx.txt');
AssignFile(WF,'c:/New.txt');
Reset(rf);
ReWrite(wf);
While not eof(RF) do
begin
Readln(RF,S);
if Trim(s)<>'' then Writeln(wf,s);
end;
closeFile(rf);
closefile(wf);
end;
为保证安全,最好还是Try一下
你太小气了,才5分...