with-file-reader ( path encoding quot -- )
Factor handbook > Input and output > Reading and writing files

Prev:change-file-lines ( path encoding quot -- )
Next:with-file-writer ( path encoding quot -- )


Vocabulary
io.files

Inputs and outputs
patha pathname string
encodingan encoding descriptor
quota quotation


Word description
Opens a file for reading and calls the quotation using with-input-stream.

Errors
Throws an error if the file is unreadable.

Definition