qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Input and Output
  System Unit Contents Index                                Back
 
  VAR
      Input, Output : Text;    { standard files }
 
  Unit:  System (used automatically)
 
  Context:  Append, Assign, AssignCrt, Read, Readln, Reset,
            Rewrite, Write, Writeln
 
  Description
 
    Input and Output are the standard Pascal files that represent the
    DOS standard files for input and output. They are automatically
    opened at program start-up.
 
    The files are of type Text. Input is a read-only file. Output is a
    write-only file.
 
    If no file is passed to the procedures Read and Readln, the
    procedures default to Input. Write and Writeln default to Output.
 
    If the Crt unit is used, Input and Output are assigned to the CRT
    rather than to the DOS standard files, and DOS redirection is
    overridden. Redirection is reenabled through the Assign procedure.