Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
17
File.Read
Type
Function returning Long
Invocation
File.Read(handle, destination, count)
Parameter
Method
Type
Description
handle
ByVal
integral
The handle of the file to read, previously returned by
File.Open().
destination
ByRef
anyType
Where to place the data read.
arg
ByVal
Single
The number of bytes to read.
Discussion
This function attempts to read the specified number of bytes from the file handle.  If successful, the return
value will be greater than zero indicating the number of bytes placed in the destination buffer.  If fewer
bytes than requested were available, the return value will be the smaller number, possibly zero.  A
negative return value indicates an error occurred.
Previous page Top Next page