[ ECLiPSe Term-based I/O built-in.|Group Index| Full Index]

nl(+Stream)

A newline is printed on the output stream Stream.

+Stream
Integer (stream number) or Atom (reserved or user-defined symbolic stream name).

Description

Used to print a newline on the output stream Stream. The stream is also flushed. Stream must be an open output stream.

Fail Conditions

None.

Resatisfiable

No.

Exceptions

(4) Instantiation fault
Stream is not instantiated.
(5) Type error
Stream is neither an atom nor a number.
(192)
Stream is not an output stream.
(193)
Stream is an illegal stream specification.

Examples


   Success:
      open(file1,update,s), nl(s), close(s).
      nl(user).
Error:
      nl(Stream).               (Error 4).
      nl(7.0).                  (Error 5).
      open(file1,read,s),nl(s). (Error 192). % read mode
      nl(29).                   (Error 192). % stream not open
      nl(-1).                   (Error 193). % out of range
      nl(30).                   (Error 193). % out of range
      nl(atom).                 (Error 193). % no such stream


See Also

nl / 0