with-decoded-input ( encoding quot -- )
Factor handbook » Input and output » I/O encodings

Prev:with-encoded-output ( encoding quot -- )


Vocabulary
io.encodings

Inputs
encodingan encoding descriptor
quota quotation


Outputs
None

Word description
Creates a new decoding stream with the given encoding descriptor and calls the quotation with this stream set to the input-stream variable. The original decoder stream is restored after the quotation returns and the stream is kept open for future input operations.

Definition