fopen

function fopen(path:String) -> File

Open a file for reading.

  • path : Path of the file.

Return: 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.

Return: 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).