next up previous contents index
Next: position Up: File Previous: fileAppend,fileBinary,fileRead,fileText,fileWrite   Contents   Index


open


Usage

open(s,m)


Signature

open: (String, MachineInteger) $\to$ %


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 $\backslash/$. The default is fileRead + fileText.


Remarks

open returns nil and throws the exception FileException if the file cannot be opened for any reason.



Manuel Bronstein 2004-06-28