io.files vocabulary
Factor handbook > Vocabulary index


Documentation
Reading and writing files

Meta-data
Authors:Slava Pestov, Daniel Ehrenberg


Words

Mixin classes
file-reader
file-writer


Generic words
WordStack effect
(file-appender)( path -- stream )
(file-reader)( path -- stream )
(file-writer)( path -- stream )
drain( port handle -- event/f )
refill( port handle -- event/f )
wait-for-fd( handle event -- )


Symbol words
+input+
+output+
+retry+


Ordinary words
WordStack effect
<file-appender>( path encoding -- stream )
<file-reader>( path encoding -- stream )
<file-writer>( path encoding -- stream )
change-file-contents( path encoding quot -- )
change-file-lines( path encoding quot -- )
exists?( path -- ? )
file-contents( path encoding -- seq )
file-lines( path encoding -- seq )
init-resource-path( -- )
set-file-contents( seq path encoding -- )
set-file-lines( seq path encoding -- )
with-file-appender( path encoding quot -- )
with-file-reader( path encoding quot -- )
with-file-writer( path encoding quot -- )


Class predicate words
WordStack effect
file-reader?( object -- ? )
file-writer?( object -- ? )


Files


Children from resource:basis
VocabularySummary
io.files.infoFile and file system meta-data
io.files.linksWorking with symbolic links
io.files.tempio.files.temp vocabulary
io.files.typesFile types for file-info and directory listing
io.files.uniqueTemporary files with unique names
io.files.unixImplementation of reading and writing files on Unix-like systems
io.files.windowsio.files.windows vocabulary


Children from resource:extra
VocabularySummary
io.files.aclsio.files.acls vocabulary
io.files.trashSend files to the trash bin.


Children
VocabularySummary
io.files.privateio.files.private vocabulary