0A9A

From GTAMods Wiki
Revision as of 04:33, 18 January 2017 by Spaceeinstein (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III Vice City San Andreas (with CLEO)


Description
Opens the file
Syntax
0A9A: [var] = openfile "[string1]" mode "[string2]"
0A9A: [var] = openfile "[string1]" mode [int]
Parameter
[string1]
File name (if using relative path, it is relative to game's directory)
[string2]
Mode (see fopen for explanation)
[var]
Variable to store the handle of the file
[int]
Mode, e.g. "r" is 0x72, "rb" is 0x6272

This CLEO opcode opens the file. It is also conditional, returning true if the file exists.

Example

See 0AD9#Example, 0ADA#Example

Keywords

open, file, openfile