told

This built-in predicate closes the current output stream. The new current output stream will be the standard output stream. If the stream to close is the standard output stream then told/0 succeeds but the standard stream is not closed. This predicate is not part of the ISO Prolog standard.

see also: at_end_of_stream/0 at_end_of_stream/1 close/2 close_user_streams/0 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 stream_property/2

Example
told. succeeds, the new current output stream is the standard output stream.

 

 

info@trinc-prolog.com