21.11.5.5 Read File

Reads the specified number of bytes of data in the file after the specified offset and writes it in the destination address. See the "Data Storage Mode" section below for more details about data storage order.

_CF_read/_USB_read (folder names, file names, save in addresses, offset, the number of bytes)

Example expression:

To read 16 bytes of data in the specified file when the offset is 16:

_CF_read ("\DATA", "DATA0001.BIN", [w:[#INTERNAL]LS0100], 16, 16)

In the example above, 16 bytes of data starting from the 17th byte in the "\DATA\DATA0001.BIN" file are written to the area starting from LS0100.