The predicates below can be used for switching between the implicit and the explicit stream-based I/O predicates.
- Set the current input stream to become Stream. Thus,
open(file, read, Stream), set_input(Stream)is equivalent to
- Set the current output stream to become Stream. See also with_output_to/2.
- Get the current input stream. Useful for getting access to the status predicates associated with streams.
- Get the current output stream.