Guest User

Untitled

a guest
Feb 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.22 KB | None | 0 0
  1. function countLines(path: string): integer;
  2. var     f: file;
  3.         s: string;
  4. begin
  5.     countLines := 0;
  6.     assign(f, path);
  7.     reset(f);
  8.     while not eof(f) do
  9.     begin
  10.         readln(f, s);
  11.         countLines := countLines + 1;
  12.     end;
  13. end;
Add Comment
Please, Sign In to add comment