home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex35.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  278 b   |  17 lines

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