Language: 
Русский
English
  {IOResult.PAS}
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
 {Sample code for the IOResult function.}
uses WinCrt;
 var F: file of Byte;
 begin
   { Get file name command line }
   Assign(F, ParamStr(1));
   {$I-}
   Reset(F);
   {$I+}
   if IOResult = 0 then
     Writeln('File size in bytes: ', FileSize(F))
   else
     Writeln('File not found');
 end.

 
 ::
      
 ::
      
 ::