READS C BYTES FROM THE BINARY FILE NUMBER N AND STORES THE VALUES TO THE ARRAY V% FROM INDEX P
ACTION
The command FILEBIN_BLOCK_READ N,C,V%(P) reads a block of C bytes from the binary file number N and stores the read values to the array V% from index P.
The array V% must be of the type integer.
The current position in the binary file is increased by C.
SYNTAX:
FILEBIN_BLOCK_READ N,C,V%(P)
USE ERROR EXAMPLE
rem open a binary file for reading
filebin_open_read 1,"file.abc"
rem set the position to 5
filebin_position 1,5
rem read 10 bytes
filebin_block_read 1,10,v%(7)
rem print the second read byte
print v%(8)
rem close the binary file
filebin_close 1
FILEBIN_BLOCK_READ
FILEBIN_BLOCK_READ N,C,V%(P)
SEE ALSO
FILEBIN_BLOCK_WRITE
FILEBIN_CLOSE
FILEBIN_HEXA_READ
FILEBIN_HEXA_READ$()
FILEBIN_HEXA_WRITE
FILEBIN_OPEN_READ
FILEBIN_OPEN_WRITE
FILEBIN_POS()
FILEBIN_POSITION
FILEBIN_READ
FILEBIN_READ()
FILEBIN_SIZE()
FILEBIN_WRITE