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

Prev:change-file-lines ( ..a path encoding quot: ( ..a seq -- ..b seq' ) -- ..b )
Next:with-file-writer ( path encoding quot -- )


Vocabulary
io.files

Inputs
patha pathname string
encodingan encoding descriptor
quota quotation


Outputs
None

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