Syntax
| variant = streamobject.Read [(NumBytes)]
| |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Reads the specified number of bytes from a binary Stream object andreturns the data as a variant.
The Read method is used to read an entire binary file or a specified number of bytes from a Stream object and to return the data as a variant.
This method is used exclusively for binary data type Stream objects. Please use the similar ReadText method for text data type Stream objects.
There is one optional parameter.
StreamReadEnum Constants
| |||||||||||||
See Also
| ||||||||||||||
Example
| Dim intNumBytes, varStreamRead
intNumBytes = 4096
...
varStreamRead = objStream.Read intNumBytes
|