August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.CreateTextFile(filename, overwrite)
The CreateTextFile() method is used to create a new text file. This method takes two parameters. The first parameter, filename, is a string specifying the name of the file to create, while the second parameter, overwrite, is a Boolean value indicating whether to overwrite an existing file.
Listing 9.74 shows how to use the CreateTextFile() method. An instance of the FileSystemObject is created, which in turn uses the CreateTextFile() method to create the file testing.txt.
<html> <body> <script language="JScript"> <!-- Hide // function creates a new text file called "testing.txt" ... |
Read now
Unlock full access