read_term/3

"read_term(+Stream, -Term, +Flags" )

Reads term T from the input stream Stream with execution controlled by the following options:

term_position(-