Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0A9D

Opcode Database

0A9D

DescriptionReads 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)
Gamessa
CategoryCLEO 3
San Andreas
sascm.ini0A9D=3,read_from_file %1d% size %2d% store_to %3d%
Example0A9D: read_from_file 0@ size 2 store_to 1@
Command NameREAD_FROM_FILE

<< 0A9C

0A9E >>