]> gitweb.factorcode.org Git - factor.git/blobdiff - core/io/files/files.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / core / io / files / files.factor
index b2f2f87ad0c57cec46a85dae0274f0fa4660edb8..6779c6d09429bc14bc4d055354a2ed709e59bf22 100644 (file)
@@ -21,13 +21,13 @@ HOOK: (file-appender) io-backend ( path -- stream )
     swap normalize-path (file-appender) swap <encoder> ;
 
 : file-lines ( path encoding -- seq )
-    <file-reader> lines ;
+    <file-reader> stream-lines ;
 
 : with-file-reader ( path encoding quot -- )
     [ <file-reader> ] dip with-input-stream ; inline
 
 : file-contents ( path encoding -- seq )
-    <file-reader> contents ;
+    <file-reader> stream-contents ;
 
 : with-file-writer ( path encoding quot -- )
     [ <file-writer> ] dip with-output-stream ; inline