with-streams ( input output quot -- )
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
inputan input stream
outputan output stream
quota quotation


Word description
Calls the quotation in a new dynamic scope, with input-stream rebound to input and output-stream rebound to output. The streams are closed if the quotation returns or throws an error.

Definition