Handbook
Glossary
stream-copy ( in out -- )
Factor handbook
»
Input and output
»
Streams
»
Stream utilities
Prev:
stream-copy* ( in out -- )
Vocabulary
io
Inputs
in
an input stream
out
an 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
USING:
destructors
kernel
;
IN:
io
:
stream-copy
( in out -- )
[
[
stream-copy*
]
with-disposal
]
curry
with-disposal
;
inline