Сообщение от Aetae
|
Примитивы в javascript преобразуются в строку как явно
|
Как-то не весь ява-скрипт:
var WshShell = WScript.CreateObject("WScript.Shell");
strPath = WshShell.currentDirectory;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var text = ['one', 'two', null, 0, false, true, null, "0", 0];
var out_file_name=fso.BuildPath(strPath, 'test_null.txt');
var ts = fso.CreateTextFile(out_file_name, true, true);
ts.Write(text.join("\n"));
ts.Close();
Код:
|
test_null.txt
one
two
0
false
true
0
0 |