Microsoft Scripting Runtime
OpenAsTextStream Method
File Object : OpenAsTextStream Method
Description
Open a file as a TextStream
Syntax
Visual Basic
Public Function OpenAsTextStream( _
   Optional ByVal IOMode As IOMode = ForReading, _
   Optional ByVal Format As Tristate = TristateFalse _
) As TextStream
Parameters
IOMode
ValueDescription
ForAppendingOpen a file and write to the end of the file.
ForReadingOpen a file for reading only. You can't write to this file.
ForWritingOpen a file for writing. If a file with the same name exists, its previous contents are overwritten.
Format
ValueDescription
TristateFalseOpens the file as ASCII.
TristateMixedn/a
TristateTrueOpens the file as Unicode.
TristateUseDefaultOpens the file using the system default.
See Also

File Object  | File Members