stream-write ( data stream -- )
Factor handbook > Input and output > Streams > Stream protocol

Prev:stream-write1 ( elt stream -- )
Next:stream-nl ( stream -- )


Vocabulary
io

Inputs and outputs
databinary data or a string
streaman output stream


Generic word contract
Writes a piece of data to the stream. If the stream performs buffering, output may not be performed immediately; use stream-flush to force output.

Notes
Most code only works on one stream at a time and should instead use write; see Default input and output streams.

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

Definition

GENERIC: stream-write ( data stream -- )


Methods