TextStream

Facilitates sequential access to a file.

Remarks

In the following code, a is the TextStream object returned by the CreateTextFile method on the FileSystemObject:

Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile= fso.CreateTextFile("c:\testfile.txt", True)
MyFile.WriteLine("This is a test.")
MyFile.Close

WriteLine and Close are two methods of the TextStream Object.

Properties

AtEndOfLine Property | AtEndOfStream Property | Column Property | Line Property

Methods

Close Method | Read Method | ReadAll Method | ReadLine Method | Skip Method | SkipLine Method | Write Method | WriteLine Method | WriteBlankLines Method

See Also

Dictionary Object | FileSystemObject Object

Сайт создан в системе uCoz