|void file(string path, int openMode, int permission=rw)|
Describes a file
is the path of the file. If it begins with "file://" then it is absolute. If it begins with "/" then it is relative to the web server. In all other cases it is relative to the current folder (the one of the caller script).
Can be: constant.file.openFileAlways: if the file doesn't exist it is created and opened constant.file.openFileExisting: if the file doesn't exist an error is returned constant.file.createFileNew: creates a new file, if a file exists in that location an error is returned constant.file.createFileAlways: creates a new file, if a file exists in that location it is deleted and substituted by the new one constant.file.dontOpen: doesn't open the file The default is openFileExisting
Can be: constant.file.rw: read and write constant.file.r: only read The default is rw
An instance of the 'file' class