O'Reilly logo

VBScript in a Nutshell, 2nd Edition by Ron Petrusha, Matt Childs, Paul Lomax

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

TextStream.ReadAll Method

Syntax

                  oTextStreamObj
                  .ReadAll

Return Value

A String.

Availability

R

Description

Reads the entire file or input stream into memory.

Rules at a Glance

  • For large files, use the ReadLine or Read methods to reduce the load on memory resources.

  • Files opened for writing or appending can’t be read; you must first close the file and reopen it using the ForReading constant.

  • When used to read the standard input stream from the keyboard, the ReadAll method pauses program execution and polls the keyboard until the AtEndOfStream symbol is encountered. For this reason, the ReadAll method should not be executed repeatedly in a loop.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required