var f = "sometextfile.txt";
writeTextFile(f, "Cheese monkey")
function writeTextFile(afilename, output)
var txtFile =new File(afilename);
It just prints the output to the console, not to a file. Can anyone tell me how to write data to file only using JS?