TextStream.Read Method |
Named Arguments
Yes
Syntax
oTextStreamObj.Read(Characters)
oTextStreamObj
Use: Required
Data Type: TextStream object
Any object variable returning a TextStream object.
Characters
Required
Data Type: Long
The number of characters you want to read from the TextStream.
Return Value
A String.
Description
Reads a given number of characters from a file.
Rules at a Glance
Files opened for writing or appending can't be read; you must first close the file and reopen it using the ForRead constant.
See Also
- TextStream.Read Method, TextStream.ReadLine Method
Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.