ReadData()

Syntax

Result = ReadData(#File, *Buffer, Offset, Size)
Description
Read the content from the file to the specified memory buffer.

Parameters

#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.

Return value

Returns the number of bytes actually read from the file. If there is an error, the return value is zero.

See Also

WriteData(), ReadFile()

Supported OS

All

<- ReadCharacter() - File Index - ReadDouble() ->