Resolve a handle.
Resolve a file handle from the specified filename. The file handle is returned in the second parameter, which must be a variable. A boolean value indicating whether the handle can be used to write to the file or not is returned in the last parameter, which must be a variable. The loader result code is returned as the value of the function call. The filename parameter must be a constant or a variable.
- Parameters
-
filename | The name of the file for which to resolve a handle. |
handle | The file handle output from the function call. |
writable | A boolean flag indicating whether the handle is to a file open for writing (true) or reading (false). |
- Returns
- The function call result. See Loader module error codes.
- Examples:
- ex_ResolveHandle.nxc.