[ Character I/O | The ECLiPSe Built-In Predicates | Reference Manual | Alphabetic Index ]

get(-Ascii)

Reads the next character from the current input stream and unifies its ASCII code with Ascii.
Ascii
Variable or integer.

Description

Takes the next character from the current input and unifies its integer ASCII code (in the range 0 to 255) to Ascii.

ASCII codes for the non-printable characters (i.e. control characters) are also acceptable.

Modes and Determinism

Exceptions

(5) type error
Ascii is instantiated, but not to an integer.
(190) end of file reached
End of file has been reached.

Examples

   Equivalent to get(input, Ascii).  (see get/2 for details).



See Also

get / 2, put / 1, put / 2