Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function FILEOPEN

Opens an file to read, write, or append.

Example

fileopen(string path,[string mode,[string charset,[boolean seekable]]]):any

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
path string  Yes   a file path  
mode string  No read Action to perform on the file, including the following:
  • read
  • readBinary
  • write
  • append

    If you do not specify the mode, Lucee opens the file in read mode.  
  • charset string  No   The character set of the file.  
    seekable boolean  No   can be used for function fileseek