Vocabulary
io.files

Inputs and outputs
patha pathname string
encodingan encoding descriptor
quota quotation


Word description
Reads the file lines, transforms the file lines, and writes them back to the same file name.

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

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

Definition


: change-file-lines
( ..a path encoding quot: ( ..a seq -- ..b seq' ) -- ..b )
[ [ file-lines ] dip call ] [ drop set-file-lines ] 3bi ;
inline