Next: mpg-ref-cut, Previous: mpg-ref-current_prolog_flag, Up: mpg-bpr [Contents][Index]
current_stream/3
current_stream(?AbsFile, ?Mode, ?Stream)
Stream is a stream, which is currently open on file AbsFile in mode Mode.
atom
Absolute filename.
for streams opened with open/[3,4]
this is
one of [read, write, append]
.
For other streams Mode may have other values.
stream_object
user_input
, user_output
and
user_error
will not be recognized or generated by
current_stream/3
.
This is unlike stream_property/2
, which can backtrack over all
streams, including the pre-defined ones.
Can be used to backtrack through all open streams.
None.
open/[3,4]
, ref-iou-sfh.