ex35.pp 278 B

12345678910111213141516
  1. Program Example35;
  2. { Program to demonstrate the IOResult function. }
  3. Var F : text;
  4. begin
  5. Assign (f,paramstr(1));
  6. {$i-}
  7. Reset (f);
  8. {$i+}
  9. If IOresult<>0 then
  10. writeln ('File ',paramstr(1),' doesn''t exist')
  11. else
  12. writeln ('File ',paramstr(1),' exists');
  13. end.