Page

B.3.0- The Scripting.TextStream Object

Created by Brendan Doss.
Last Updated by Brendan Doss.  

PublicCategorized as Appendix B.

Not yet tagged
<< B.2.3- The File ObjectAppendixB

The Scripting.TextStream Object

The TextStream object provides access to files stored on disk, and is used in conjunction with the FileSystemObject object.

 

Property

Description

AtEndOfLine

Returns True if the file pointer is at the end of a line in the file.

AtEndOfStream

Returns True if the file pointer is at the end of the file.

Column

Returns the column number of the current character in the file, starting from 1.

Line

Returns the current line number in the file, starting from 1.

 

The AtEndOfLine and AtEndOfStream properties are only available for a file that is opened with iomode of ForReading. Referring to them otherwise causes an error.

 

Method

Description

Close()

Closes an open file.

Read(numchars)

Reads numchars characters from the file.

ReadAll()

Reads the entire file as a single string.

ReadLine()

Reads a line from the file as a string.

Skip(numchars)

Skips and discards numchars characters when reading from the file.

SkipLine()

Skips and discards the next line when reading from the file.

Write(string)

Writes string to the file.

WriteLine(string)

Writes string (optional) and a newline character to the file.

WriteBlankLines(n)

Writes n newline characters to the file.

 


<< B.2.3- The File ObjectAppendixB

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |