chickadee » vfs » vfs:open-output-file

(vfs:open-file FILESYSTEM PATHNAME OUTPUT? MODES)method
(vfs:open-input-file FILESYSTEM PATHNAME MODES)method
(vfs:open-output-file FILESYSTEM PATHNAME MODES)method

Called for FILESYSTEM (an instance of <vfs:file-system>) when a file should be opened for reading or writing. PATHNAME is a string representing the path to the desired file. MODES is a list of one or more keywords specifying extra attributes for the file to be opened which are:

#:append
#:binary
#:text

See the The User's Manual for a description of these modes. If the vfs:open-file method is not implemented for a given file system, then either vfs:open-input-file or vfs:open-output-file are called, depending on the boolean OUTPUT?.

All of these generic functions should return a port object.