with-output-stream* ( stream quot -- )
Factor documentation > Factor handbook > Input and output > Streams > Default input and output streams
Prev:with-output-stream ( stream quot -- )
Next:with-streams ( input output quot -- )


Vocabulary
io

Inputs and outputs
streaman output stream
quota quotation


Word description
Calls the quotation in a new dynamic scope, with output-stream rebound to stream.

Notes
This word does not close the stream. Compare with with-output-stream.

See also
with-output-stream

Definition
USING: kernel namespaces ;

IN: io

: with-output-stream* ( stream quot -- )
output-stream swap with-variable ; inline