YouTip LogoYouTip

Met Opentextfile

# ASP OpenTextFile Method * * Complete FileSystemObject Object Reference Manual](#) * * * The OpenTextFile method opens a specified file and returns a TextStream object that can be used to access the file. ### Syntax FileSystemObject.OpenTextFile(fname,mode,create,format) | Parameter | Description | | --- | --- | | fname | Required. The name of the file to open. | | mode | Optional. How to open the file. 1=ForReading - Opens the file for reading data. You cannot write to this file. 2=ForWriting - Opens the file for writing data. 8=ForAppending - Opens the file and writes data to the end of the file. | | create | Optional. Specifies whether to create a new file if the filename 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. 0=TristateFalse - Opens the file as ASCII. Default. -1=TristateTrue - Opens the file as Unicode. -2=TristateUseDefault - Opens the file using the system default format. | ### Example * * Complete FileSystemObject Object Reference Manual](#)
← Prop AtendoflineMet Movefolder β†’