FileSystemObject.OpentextFile()

JScript2.0+Syntax

							filesystemobject.OpentextFile(filename, iomode, create, format)

Description

The OpentextFile() method is used to open a text stream object to a specified file, which can be used to read and write from that file. This method takes four parameters. The first parameter, filename, is the name of the file to be created. The second parameter, iomode, is the mode of the file. The third parameter, create, is a Boolean value indicating whether the file can be created if it doesn't exist. And the final parameter, format, is a value indicating the format of the opened file. The default is ASCII.

Example

Listing 9.94 shows how the OpentextFile() method is used. An instance of the FileSystemObject is ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.