next up previous contents index
Next: Term I/O Up: Input and Output Previous: File Handling   Contents   Index

Character I/O

nl

A new line character is sent to the current output stream.

nl(+Stream)

A new line character is sent to the designated output stream.

get0(?N)

N is the ASCII code of the next character read from the current input stream. If the current input stream reaches its end of file, a -1 is returned

Compatibility Note: Unlike other Prologs, such as C-Prolog, the input stream is not closed on encountering the end-of-file character.

get(?N)

N is the ASCII code of the next non-blank printable character from the current input stream. It has the same behaviour as get0/1 when an end of file character is encountered.

Compatibility Note: Unlike other Prologs, such as C-Prolog, the input stream is not closed on encountering the end-of-file character.

put(+N)

Puts the ASCII character code N to the current output stream.

Exceptions:

instantiation_error
N is not instantiated at the time of the call.
type_error
N is not an integer at the time of the call.

tab(+N)

Puts N spaces to the current output stream.

Exceptions:

instantiation_error
N is not instantiated at the time of the call.
type_error
N is not an integer at the time of the call.


next up previous contents index
Next: Term I/O Up: Input and Output Previous: File Handling   Contents   Index
Baoqiu Cui
2000-04-23