diff --git a/core/io/files/files.factor b/core/io/files/files.factor index 4b19dd6943..1824a47867 100755 --- a/core/io/files/files.factor +++ b/core/io/files/files.factor @@ -143,12 +143,13 @@ M: pathname <=> [ pathname-string ] compare ; : file-lines ( path -- seq ) lines ; : file-contents ( path -- str ) - dup swap file-length [ stream-copy ] keep >string ; - -: with-file-writer ( path quot -- ) - >r r> with-stream ; inline + dup swap file-length + [ stream-copy ] keep >string ; : with-file-reader ( path quot -- ) + >r r> with-stream ; inline + +: with-file-writer ( path quot -- ) >r r> with-stream ; inline : with-file-appender ( path quot -- )