improved robustness

more tests added.
This commit is contained in:
Unknown
2018-02-05 15:50:56 -05:00
parent 39e09f9bce
commit fe871d48d6
5 changed files with 76 additions and 48 deletions

View File

@@ -1,11 +1,10 @@
var Path = arguments[0];
alert(Path)
var saveFile = File(Path + "/test.txt");
var saveFile = File(arguments[0]);
if(saveFile.exists)
saveFile.remove();
saveFile.encoding = "UTF8";
saveFile.open("e", "TEXT", "????");
saveFile.writeln("Testing...");
for (var i = 0; i < arguments.length; i++) {
saveFile.writeln(arguments[i])
}
saveFile.close();