write_binary_term/2

write a term "Term" to a binary term stream "TermStream"

write_binary_term(+TermStream, +Term)

Write a term to a binary term stream.
The stream MUST be opened with open/4 with option type(term).
The stream MUST be closed with an expicit call to close/1.

Arguments

	TermStream	Stream, opened with open/4 option type(term)
	Term		a term

Example

        open('mydata.data',write,TermStream,[type(term)]),
        write_binary_term(TermStream, Term1),
                :
        write_binary_term(TermStream, TermN),
        close(TermStream),

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

binary term streams, read_binary_term/2,


Up read on...