For a beginner take a look at FileSystemObject and the function CreateTextFile.
quote:
Originally posted by roflmao456
example:
jscript code:
var fso = new ActiveXObject("Scripting.FileSystemObject");
fso.OpenTextFile("c:\test.txt" /*filename*/,2 /*mode;1=reading;2=writing;8=append*/, true /*create if non-existant*/);
It should be:
code:
var fso = new ActiveXObject("Scripting.FileSystemObject");
fso.OpenTextFile("c:\\test.txt" /*filename*/,2 /*mode;1=reading;2=writing;8=append*/, true /*create if non-existant*/);