[ ECLiPSe Term-based I/O built-in.|Group Index| Full Index]

writeq(?Term)

The term Term is written on the current output in a form that can be read in.

?Term
Prolog term.

Description

Used to write the term Term on the current output according to the current operator declarations. Atoms and strings are quoted, operator expressions parenthesised (whenever necessary) and the print_depth flag is not taken into account. The output of writeq/1 can be read back, provided that the same operator declarations are in effect at write and read time. writeq(Term) is equivalent to printf("%QDvw", Term).

Note that as usual, the output is buffered, so it may need to be flushed either by closing the stream, by writing again or by using flush/1.

Fail Conditions

None.

Resatisfiable

No.

Exceptions

Examples

   Equivalent to writeq(output, Term).  (see writeq/2 for details).


See Also

printf / 2, write / 1, write / 2, writeq / 2