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.
- Parameters
-
handle | The file handle. |
length | The number of bytes to read. Returns the number of bytes actually read. |
buf | The byte array where the data is stored on output. |
- Returns
- The function call result. See Loader module error codes.
- Examples:
- ex_ReadBytes.nxc.