Difference between revisions of "0A9A"
Jump to navigation
Jump to search
(Created page with "{{OpCode | games = {{Icon|t}} (with CLEO) | description = Opens the file | syntax1 = 0A9A: [''var''] = openfile "[''string1'']" mode "[''string2'']" | syntax2...") |
(No difference)
|
Revision as of 08:26, 16 September 2016
(with CLEO)
- Description
- Opens the file
- Syntax
- 0A9A: [var] = openfile "[string1]" mode "[string2]"
- 0A9A: [var] = openfile "[string1]" mode [int]
- Parameter
- [var]
- Variable to store the handle of the file
- [string1]
- File name (if using relative path, it is relative to game's directory)
- [string2]
- Mode (see
fopenfor explanation) - [int]
- Mode, e.g. "r" is 0x72, "rb" is 0x6277
This CLEO opcode opens the file. It is also conditional, returning true if the file exists.