Expand|Select|Wrap|Line Numbers
- var textTobeWritten = blah();
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- var tempFile = fso.OpenTextFile(originalFilename, 2, true);
- tempFile.Write(textTobeWritten);
- tempFile.close();
- alert("done!! ");
i've a strange problem. I can actually do tempFile.write("XXX"); and it can be written successfully.
However, when I try to write textTobeWritten, which is mainly ANSI encoded characters, it will give me a "Invalid procedure call or argument, error code 0" on the line tempFile.write(textTobeWritten);
i am doing this on apache2.2.2 on a localhost. It was ok in the past with an older version of apache, but after i reinstalled apache, this problem came up.
can anybody please give me some advice on this??
thanks in advance...