My question is, how do you use JavaScript to create and edit a file on the user's computer when running outside a web browser. I understand this is not possible inside a web browser for security reasons, but when invoked from the command line how can I do this in JavaScript.
Actually, I am not running from the command line I am using Java to evaluate it, but I doubt that would matter. (new ScriptEngineManager().getEngineByName("JavaScript").eval(myCode)
, if you were wondering how I do it.)