程式語言 - JavaScript - Write Text File



main.js

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