I want to save .json file in application path using javascript. I used the following code to save the file. but it saved in physical path. not in the application path. my code is:
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.CreateTextFile("E:\\Model.json", true);
s.WriteLine(json);
s.Close();
in server side can use Server.MapPath but i dont know how to save in Javascript. please guide me friends, thanks in advance..