GTAG - Modding - Opcode Database - 0A9D
Opcode Database
0A9D
| Description | Reads the specified number of bytes from the opened file and writes them to the memory region starting from the address where the variable is. Parameters: 1 = file handle 2 = number of bytes to read from the file 3 = variable to store the result. If the number of delivered bytes is more than four, the remainder will be written to the next variable (2@ in this case), and so on. Warning: Sizes should be 1, 2 or a multiple of 4. |
|---|---|
| Parameters (v2) | 1) File handle (Integer) (INT) 2) Integer (INT) 3) (Returned) Any value (ANY) |
| Games | |
| Category | CLEO 3 |
| San Andreas | |
| sascm.ini | 0A9D=3,read_from_file %1d% size %2d% store_to %3d% |
| Example | 0A9D: read_from_file 0@ size 2 store_to 1@ |
| Command Name | READ_FROM_FILE |

