I want to modify a .txt (overwrite completely) using javascript/jquery. I am currently using the code written below and it is working fine in IE.
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.OpenTextFile(dir + "modules.txt", 2, true, -2);
s.WriteLine(tobewritten);
s.Close();
fso = s = null;
How can the same be done in Mozilla firefox.
Please note that I am running my application locally and not hosted on a webserver.