Using "fso" In Javascript, How To Write A Variables's Content To A File?
Possible Duplicate: how to write a variables's content to a file in JavaScript I have this piece of code to create a text file. How can I write to this text file? function makef
Solution 1:
Here's one way:
makefile();
function makefile () {
var fso = new ActiveXObject("Scripting.FileSystemObject"),
thefile=fso.CreateTextFile("C:\\temp\\MyFile.txt",true);
thefile.WriteLine('abc');
thefile.Close();
}
Post a Comment for "Using "fso" In Javascript, How To Write A Variables's Content To A File?"