sets the current inputstream.
set_input sets the current inputstream to Stream. This stream may be used by the following input predicates without an explicit stream-argument.
stream input stream
The following examples opens a file 'test.data' and sets the current input stream to this stream.
?- open('test.data', read, Stream), set_input(Stream).
This predicate is part of the ISO-Prolog Standard.