FileOpen

Opens an file to read, write, or append.

FileOpen( path [, mode [, charset [, seekable ] ] ] )

Returns: any

Argument Description Default
path
string, required

a file path

mode
string, optional

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.

read

charset
string, optional

The character set of the file.

seekable
boolean, optional

can be used for function fileseek

Examples

There are currently no examples for this function.

See also