read a term "Term" from a binary term stream "TermStream"...
Move to
Next Prev
Up Top
See also
read_binary_term/2
write_binary_term/2
IF Computer > MINERVA > Manual > Reference > Predicates > Term Stream > read_binary_term/2

read_binary_term/2

read a term "Term" from a binary term stream "TermStream"

read_binary_term(+TermStream, -Term)

read a term from a binary term stream. At end of file, the predicate returns 'end_of_file'.

Arguments

	TermStream	Stream, opened with open/4 option type(term)
			the data must be binary term data
	Term		a term

Example

        open('mydata.data',read,TermStream,[type(term)]),
        repeat,
                read_binary_term(TermStream, Term),
                ( Term = end_of_file ->
                        true
                ;       doSomeThingWith(Term),
                        fail
                ), !,
        close(TermStream),

Standard

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

See also

binary term streams, write_binary_term/2,

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Language
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/TermStream/read_binary_term/home_en.html
published 2008/7/7 update 2001/11/1 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS