ReadData Method

Object List

Defined By:
BinaryFile

Description:

Reads from the currently open file handle (property "Handle"), that has been previously opened by a call to Open, OpenReadOnly, or Create.

Declaration:

Function ReadData(ByVal buffer As Object) As Long

Details:

The argument specifies the DataBuffer object to use for reading. The Size of the DataBuffer determines how many bytes will be read from the file. If the "buffer" argument is a valid DataBuffer, the return value is the number of bytes actually read, otherwise (for an invalid argument) it is -1. If the address referred to by the DataBuffer
s Data property is not valid for writing, an exception is thrown.