Advertisement
Falxns

Untitled

Oct 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function CheckInputFile(Min, Max: Integer; var MyFile: TextFile): Boolean;
  2. var
  3. IsCorrect: Boolean;
  4. Number: Integer;
  5. begin
  6. IsCorrect := true;
  7. while (not SeekEof(MyFile)) and (IsCorrect) do
  8. try
  9. Readln(MyFile, Number);
  10. except
  11. IsCorrect := false;
  12. end;
  13. CheckInputFile := IsCorrect;
  14. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement