10/04/27 14:28:10 .net
Rhinoのサイト
URLリンク(developer.mozilla.org)
JScriptとRhinoの比較
//jscriptCat.js
var file = new ActiveXObject("Scripting.FileSystemObject").
OpenTextFile(WScript.Arguments(0));
while (!file.AtEndOfStream) {
WScript.StdOut.WriteLine(file.ReadLine());
}
file.close()
//rhinoCat.js
importPackage(java.io);
var file = new BufferedReader(new FileReader(arguments[0]));
while (file.ready()) {
print(file.readLine());
}
file.close();