Open-File
(open-file path mode) -> file
- path -- Must be a string giving the path to the file. Dependent on the path structure of the host environment.
- mode -- Must be a string. See below for list of possibilities.
Example:
>> (define a (open-file "test.txt" "rwc"))
:: [fileopen test.txt]
Opens the given file with the flags given in mode. What flags will be accepted vary by the host environment. What follows is a partial list.
Universal to all OSes:
- r -- Read permission
- w -- Write permission
- c -- Create-if-Missing
- m -- Mutual exclusion
- t -- Truncate (delete contents of existing file)
See Also: <file>