set_output/1

Synopsis

set_output(+Stream)

makes Stream the current output stream.

Arguments


Stream stream_object
a valid output stream

Description

Subsequent output predicates such as write/1 and put/1 will use this stream.

Exceptions

Stream errors (see ref-iou-sfh-est), plus:


instantiation_error

type_error

See Also:

write/1, put/[1,2]