writeq/1/2

outputs a term to a stream in a quoted form.

writeq(+Term)
writeq(+Stream, +Term)

writeq/1 outputs a single term (Term) to the current outputstream.
writeq/2 outputs a single term (Term) to the given stream(Stream).

Arguments

Stream                 text output stream
Term                   term

Examples

?- writeq('hello world').
'hello world'

Standard

These predicates are part of the ISO-Prolog Standard.

See also

current_op/3, op/3, print/1/2, println/1/2, read/1/2, read_term/2/3, write/1/2, write_canonical/1/2, write_term/2/3,


Up read on...