Railo 4.2 Reference
Choose a function:


Opens an file to read, write, or append.


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


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

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