IF Computer > MINERVA > Manual > Reference > Predicates > Stream selection and control > set_output/1

set_output/1

MINERVA
ifcomputer logo
f
Expert Services on the Web

sets the current outputstream.

set_output(+Stream)

set_output sets the current outputstream to Stream. This stream may be used by the following output predicates without an explicit stream-argument.

Arguments

Stream                 output stream

Examples

The following examples opens a file 'test.data' and sets the current output stream to this stream.

?- open('test.data', write, Stream), set_output(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_input/1.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/stream_selection/set_output/print_en.html
published 2008/9/1 update 1998/8/7 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS