File.OpenAsTextStream() (Method)

A means of opening the file as if it were a text stream so JScript can do I/O on it.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:TextStream object
JavaScript syntax:IEmyFile.OpenAsTextStream(aMode, aFormat)
Argument list:aModeAn access mode for the file
aFormatA format control for the file

This method opens the file for JScript so that it can access or modify its contents when the JScript interpreter is in the Windows environment.

The mode parameter should be one of:

The format parameter can be set to open the file with a Unicode or ASCII character set. The default is ASCII if you request the system default value. These values are indicated with a numeric value as follows:

ValueFormat
-2Use system default
-1Unicode text format
0ASCII text format

See also:FileSystem.OpenTextFile(), TextStream object