write/[1,2]

Synopsis

write(+Term)

write(+Stream, +Term)

Writes Term to the current output stream or Stream.

Arguments


Stream stream_object
a valid output stream
Term term
the term to be written

Description

Equivalent to write_term/[2,3] with these options:

     [quoted(false),ignore_ops(false),numbervars(true)]
     

If Term is uninstantiated, it is written as an anonymous variable (an underscore followed by a non-negative integer).

Exceptions

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


existence_error

Example

     | ?- write('a b').
     a b
     

See Also

read[1,2], writeq/[1,2], write_canonical/[1,2] or write_term/[2,3].