Skip to end of banner
Go to start of banner

fileOpen

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Description

Opens a file in memory so that it may be read from. Note that the file is seen as an octet stream, encoding doesn’t matter from this point of view. File may be read and written at random locations.

Parameters

Return Type

integer

The id of the file that was opened. The id has no meaning beyond the script.

Throws

string

  • invalid - if the path is invalid

  • unresolvable - if the file cannot be resolved

  • cannot_work_on_directory - if the path is a directory, in fact, and not a file

  • notfound - if the file is not found

Example

Example 1

use "file";

int fid = open(filename); //fileOpen
fileClose(fid);//full name of the routine

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels