writeq/[1,2]

Synopsis

writeq(+Term)

writeq(+Stream, +Term)

Writes the term Term to Stream or the current output stream.

Arguments


Stream stream_object
a valid Prolog stream, which is open for output
Term term
the term to be written

Description

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

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

Does not terminate its output with a full-stop. Therefore, if you want this term to be input to read/[1,2], you must explicitly write a full-stop to mark the end of the term.

Comments

Depending upon whether character escaping is on or off, writeq/[1,2] and write_canonical/[1,2] behave differently when writing quoted atoms. If character escaping is on:

If character escaping is off:

Exceptions

Stream errors (see ref-iou-sfh-est)

See Also

write_term/[2,3], write/[1,2], write_canonical/[1,2] ref-syn-ces for information about character escaping.