[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson