matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Writing files?
quote: Originally posted by matty
Also, JScript doesn't define the IO mode constants for the FileSystemObject, so you need to define them yourself:
quote: Originally posted by ultimatebuster
I looked at it, but I can't seems to write a file
code: var ForAppending = 8;
var fso, theFile;
fso = new ActiveXObject("Scripting.FileSystemObject");
theFile = fso.OpenTextFile("data.txt", ForAppending, true);
theFile.WriteLine("Hello World!");
theFile.Close();
OP did do that...
|
|