fork download
  1. Program Lesson9_Program3;
  2. Uses Crt;
  3. Var t : Text;
  4. s : String;
  5.  
  6. Begin
  7. Assign(t,'C:\ABC.DEF');
  8. {$I-} { disable i/o error checking }
  9. Reset(t);
  10. {$I+} { enable again i/o error checking - important }
  11. If (IOResult <> 0) then
  12. Begin
  13. Writeln('The file required to be opened is not found!');
  14. Readln;
  15. End Else
  16. Begin
  17. readln(t,s);
  18. Writeln('The first line of the file reads: ',s);
  19. Close(t);
  20. End;
  21. End.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pas:2: error: module/unit interface `Crt' could not be imported
stdout
Standard output is empty