Creating a file Create an empty text file (sometimes called "text stream") has three ways. The first method is to use the CreateTextFile method. The following example demonstrates how to create text files in this method in VBScript:
DIM FSO, F1SET FSO = CreateObject ("scripting.filesystemObject") set f1 = fso.createtextfile ("c: /testfile.txt", true)
To use this method in JScript, use the following code:
VAR FSO, F1; FSO = New ActiveXObject ("scripting.filesystemObject"); f1 = fso.createtextfile ("c: //testfile.txt", true);
This only Windows platform support, you can search for your computer "jscript5.chm" or "vbscript5.chm" to find more information