Easy Tutorial
❮ Met Copy Folder Asp Ref Session ❯

ASP OpenAsTextStream Method



The OpenAsTextStream method opens the specified file and returns a TextStream object for accessing the file.

Syntax

Parameter Description
mode Optional. How to open the file (input/output mode). 1 = ForReading - Opens the file in read-only mode. Writing to the file is not allowed. <br> 2 = ForWriting - Opens the file in read-write mode. If a file with the same name already exists, it overwrites the old file. <br> 8 = ForAppending - Opens the file and writes to the end of the file.
format Optional. The format in which to open the file. If this parameter is omitted, the file is opened in ASCII format. 0 = TristateFalse - Default. Opens the file in ASCII format. <br> -1 = TristateTrue - Opens the file in Unicode format. <br> -2 = TristateUseDefault - Opens the file in the system default format.

Example


❮ Met Copy Folder Asp Ref Session ❯