Table of contents
Collapse the table of content
Expand the table of content

TextStream Object

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Description Facilitates sequential access to file. SyntaxTextStream. { property | method } The property and method arguments can be any of the properties and methods associated with the TextStream object. Note that in actual usage TextStream is replaced by a variable placeholder representing the TextStream object returned from the FileSystemObject. Remarks In the following code, a is the TextStream object returned by the CreateTextFile method on the FileSystemObject: WriteLine and Close are two methods of the TextStream Object.

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.txt", True)
a.WriteLine("This is a test.")
© 2018 Microsoft