set-file-contents ( seq path encoding -- )
Factor handbook » Input and output » Reading and writing files

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


Vocabulary
io.files

Inputs
seqa sequence
patha pathname string
encodingan encoding descriptor


Outputs
None

Word description
Sets the contents of a file to a sequence with the given encoding.

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

See also
set-file-lines, file-lines, change-file-lines, file-contents, change-file-contents

Definition