write/[1,2]write(+Term)
write(+Stream, +Term)
Writes Term to the current output stream or Stream.
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).
Stream errors (see ref-iou-sfh-est), plus:
existence_error
| ?- write('a b').
a b
read[1,2], writeq/[1,2],
write_canonical/[1,2] or write_term/[2,3].