Duplex streams
Factor handbook ยป Input and output

Prev:I/O encodings
Next:Plain writer streams


Duplex streams combine an input stream and an output stream into a bidirectional stream.
duplex-stream

<duplex-stream> ( in out -- duplex-stream )


A pair of combinators for rebinding both default streams at once:
with-stream ( stream quot -- )

with-stream* ( stream quot -- )