ASP OpenTextFile
Method
The OpenTextFile method opens a specified file and returns a TextStream object that can be used to access the file.
Syntax
Parameter | Description |
---|---|
fname | Required. The name of the file to open. |
mode | Optional. How to open the file. <br>1=ForReading - Opens the file for reading. You cannot write to this file. <br>2=ForWriting - Opens the file for writing. <br>8=ForAppending - Opens the file and writes to the end of the file. |
create | Optional. Specifies whether a new file should be created if the file name does not exist. True indicates a new file can be created, False indicates a new file will not be created. False is the default. |
format | Optional. The format of the file. <br>0=TristateFalse - Opens the file in ASCII format. Default. <br>-1=TristateTrue - Opens the file in Unicode format. <br>-2=TristateUseDefault - Opens the file using the system default format. |