stream-copy ( in out -- )
Factor handbook > Input and output > Streams > Stream utilities

Prev:stream-copy* ( in out -- )


Vocabulary
io

Inputs and outputs
inan input stream
outan output stream


Word description
Copies the contents of one stream into another, closing both streams when done. To copy without closing the streams, use stream-copy*.

Errors
Throws an error if the I/O operation fails.

Definition