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


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


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


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


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

See Also

get / 2, put / 1, put / 2