Usage
open(s,m)
Signature
open: (String, MachineInteger) %
Parameter | Type | Description |
---|---|---|
s | String | a filename |
m | MachineInteger | a mode (optional) |
Description
Opens the file with the name s in the mode m, and returns the opened file. The mode is any combination of the constants fileAppend, fileRead, and fileWrite, together with one of fileBinary or fileText, grouped together with + or . The default is fileRead + fileText.
Remarks
open returns nil and throws the exception FileException if the file cannot be opened for any reason.