stream-write1 ( elt stream -- )
Factor handbook » Input and output » Streams » Stream protocol

Prev:stream-flush ( stream -- )
Next:stream-write ( data stream -- )


Vocabulary
io

Inputs
eltan element
streaman output stream


Outputs
None

Generic word contract
Writes an element to the stream. If the stream does 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 write1; see Default input and output streams.

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

Definition

GENERIC: stream-write1 ( elt stream -- )


Methods