Result = ReadData(#File, *Buffer, Offset, Size)Description
Read the content from the file to the specified memory buffer.
#File The file to read from. *Buffer The buffer to write the read data to. It has to be allocated with AllocateMemory(). Offset The offset (in bytes) in the buffer to write the read data to. Size The number of bytes to read.
Returns the number of bytes actually read from the file. If there is an error, the return value is zero.