| sets the current inputstream.
set_input(+Stream)
set_input sets the current inputstream to Stream. This
stream may be used by the following input predicates without an
explicit stream-argument.
Arguments
stream input stream
Examples
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).
Standard
This predicate is part of the ISO-Prolog Standard.
See also
at_end_of_stream/0/1,
close/1/2,
current_error/1,
current_input/1,
current_output/1,
flush_output/0/1,
open/3/4,
set_error/1,
set_output/1.
|