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