get0/1
Module: sio
get0/1
— read the next character
get/1
— read the next printable character
FORMS
get0(Char)
get(Char)
DESCRIPTION
get0/1
unifies Char
with the ASCII code of the next character from the current input stream. If there are no more characters left in the stream, Char
will be unified with -1
get/1
discards all non-printing characters from the current input stream. It unifies Char
with the ASCII code of the first non-blank printable character. Char is unified with -1 on end of file.
EXAMPLES
?- get(First),get(Second),get(Third).
ABCDEFGHI<newline>
First=65,
Second=66,
Third=67
yes.