Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function countLines(path: string): integer;
- var f: file;
- s: string;
- begin
- countLines := 0;
- assign(f, path);
- reset(f);
- while not eof(f) do
- begin
- readln(f, s);
- countLines := countLines + 1;
- end;
- end;
Add Comment
Please, Sign In to add comment