ReadData()

Syntax

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

Parameters

#File The file to read from.
*MemoryBuffer The address to write the read data to.
LengthToRead 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.

Remarks

For a code example look at the Lof() function.

See Also

WriteData(), OpenFile(), ReadFile()

Supported OS

All

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