NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
unsigned int ReadBytes ( byte  handle,
unsigned int &  length,
byte &  buf[] 

Read bytes from a file.

Read the specified number of bytes from the file associated with the specified handle. The handle parameter must be a variable. The length parameter must be a variable. The buf parameter must be an array or a string variable. The actual number of bytes read is returned in the length parameter.

handleThe file handle.
lengthThe number of bytes to read. Returns the number of bytes actually read.
bufThe byte array where the data is stored on output.
The function call result. See Loader module error codes.