FileOpen()
Opens an file to read, write, or append.
FileOpen( file=string, mode=string, charset=string, seekable=boolean );
Returns: any
Examples
myFile = fileOpen("filepath/filename.ext");
writeDump(myfile);
// how to access the underlying resource provider info
f = "ram://demo.txt";
fileWrite(f, "demo");
dump(f.getResource().getResourceProvider().getScheme()); // ram ( i.e. the resource provider type)
See also
- File handling
- FileReadLine()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)