mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 23:19:25 +02:00
17 lines
278 B
ObjectPascal
17 lines
278 B
ObjectPascal
Program Example35;
|
|
|
|
{ Program to demonstrate the IOResult function. }
|
|
|
|
Var F : text;
|
|
|
|
begin
|
|
Assign (f,paramstr(1));
|
|
{$i-}
|
|
Reset (f);
|
|
{$i+}
|
|
If IOresult<>0 then
|
|
writeln ('File ',paramstr(1),' doesn''t exist')
|
|
else
|
|
writeln ('File ',paramstr(1),' exists');
|
|
end.
|