WriteData Method
Object List
Defined By: BinaryFile
Description:
Writes to the currently open file handle (property "Handle"), that has been
previously opened by a call to Open, OpenReadOnly, or Create.
Declaration:
Function WriteData(ByVal buffer As Object) As Long
Details:
The argument specifies the DataBuffer object to use for writing. The Size of
the DataBuffer determines how many bytes will be written to the file. If the
"buffer" argument is a valid DataBuffer, the return value is the number of bytes
actually written, otherwise (for an invalid argument) it is -1. If the address
referred to by the DataBuffer’s Data property is not valid for reading, an exception is thrown.