I am trying to create a text file using JavaScript. I have tried the following code, but this didn’t work. What is the solution?
var fso, file;
fso = new ActiveXObject("Scripting.FileSystemObject");
file = fso.CreateTextFile("c:\\Mytest\test.txt");
file.Close();