Please visit our sponsors !
The ReadText Method
The ReadText method is used to read the entire stream, a line, or a specified number of
characters from
a text Stream object and returns the resulting data as a string.
Note: This method is only used with text Stream objects, for binary
Stream objects, use the Read method.
Syntax
str=objStream.ReadText numchars
|
Parameter |
Description |
numchars |
Optional. The number of characters to read from the file,
or a StreamReadEnum value. Default is adReadAll
If you have specified more than the number of characters left in the
Stream, only the character remaining are returned
|
StreamReadEnum Values
Constant |
Value |
Description |
adReadAll |
-1 |
Default. Reads all characters from the stream, from the
current position to EOS
|
adReadLine |
-2 |
Reads the next line from the stream |
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|