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

Prev:with-file-reader ( path encoding quot -- )
Next:with-file-appender ( path encoding quot -- )


Vocabulary
io.files

Inputs
patha pathname string
encodingan encoding descriptor
quota quotation


Outputs
None

Word description
Opens a file for writing using the given encoding and calls the quotation using with-output-stream.

Errors
Throws an error if the file cannot be opened for writing.

Definition