fopen


function fopen(path:String) -> File

Open a file for reading.

  • path Path of the file.

Returns File handle.

If path includes non-existing directory, that directory is created (if possible). The file is locked for reading (if possible).

function fopen(path:String, mode:Integer) -> File

Open a file.

  • path Path of the file.
  • mode The mode, either READ, WRITE, or APPEND.

Returns File handle.

If path includes non-existing directory, that directory is created (if possible). The file is locked for reading or writing as appropriate (if possible).