var fs = require('fs');
try { 
  fs.writeFileSync(app.getPath('desktop')+'/thefile.txt', content, 'utf-8'); 
}
catch(e) { alert('Failed to save the file !'); }
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *