Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> con predefined standard file pp 105</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CON                       Predefined Standard File                   pp 105


 Define:  CON is the predefined text file for the CON: device.

 Purpose: Output is sent to the operating system console CRT, and input is
          received from the keyboard if {$B+} (default) is set.

 Notes:   Use of Assign, Reset, ReWrite, and Close is illegal here.

          Each Read or ReadLn from a text file assigned to the CON:
          device will input an entire line into a line buffer, and the
          operator is provided with a set of editing facilities during
          line input.  The data from Read or ReadLn is echoed to the CRT.


 ----------------------------------------------------------------------------


 Usage:
       VAR
          StrVar : String [8 ];        { Allow only 8 bytes of input       }

       BEGIN
          ReadLn  (CON,StrVar);        { Read from standard CON input file }
          ReadLn  (StrVar);            { Read from assumed CON file        }
          WriteLn (StrVar);            { Write back the data to CON file   }
       END.

See Also: B Directive Input Output Read Trm Write

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson