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

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


Vocabulary
io

Inputs
inan input stream
outan output stream


Outputs
None

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