procedure count(const txt: string);
var
F:TextFile;
s:string;
line:integer;
begin
Assign(F,txt);
reset(F);
line:=0;
while not seekeof(F) do
begin
if seekEoln(F) then
readln;
readln(F,s);
if seekeof(F) then
break
else
inc(line);
end;
closefile(F);
result:=line;
end;
给分?