close_user_streams

This built-in predicate closes all streams except the standard input and output stream.

see also: at_end_of_stream/0 at_end_of_stream/1 close/1 close/2 current_input/1 current_output/1 flush_output/0 flush_output/1 open/3 open/4 prolog I/O set_input/1 set_output/1 set_stream_position/2 set_stream_property/2 stream_property/2

Example
close_user_streams. all streams except the standard input and output stream were closed

 

 

info@trinc-prolog.com