nl/0/1

outputs the newline-character.

nl
nl(+Stream)

nl/0 outputs the newline-character at the current outputstream.

nl/1 outputs the newline-character at the stream named in the first argument (Stream).

Arguments

Stream                 text output stream

Examples

Assume the content of a stream S is abcdefg and the stream position is behind the last character.

nl(S). Succeeds. The current inputstream is now abcdefg\n

Standard

These predicates are part of the ISO-Prolog Standard.

See also

get_char/1/2, get_code/1/2, peek_char/1/2, peek_code/1/2, put_char/1/2, put_code/1/2.


Up read on...