August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.OpentextFile(filename, iomode, create, format)
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.
Listing 9.94 shows how the OpentextFile() method is used. An instance of the FileSystemObject is ...
Read now
Unlock full access