IF Computer > MINERVA > Manual > Reference > Predicates > Term Stream > write_binary_term/2

write_binary_term/2

MINERVA
ifcomputer logo
f
Expert Services on the Web

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,

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/TermStream/write_binary_term/print_en.html
published 2008/10/13 update 2001/11/1 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS