main.js
var fso = new ActiveXObject("Scripting.FileSystemObject"); var fh = fso.OpenTextFile("test.txt", 8, true); fh.WriteLine("Hello, world!"); fh.Close();