[CODE=javascript]var textTobeWritten = blah();
var fso = new ActiveXObject(" Scripting.FileS ystemObject");
var tempFile = fso.OpenTextFil e(originalFilen ame, 2, true);
tempFile.Write( textTobeWritten );
tempFile.close( );
alert("done!! ");
[/CODE]
--------------------
i've a strange problem. I can actually do tempFile.write( "XXX"); and it can...
User Profile
Collapse
-
cannot write to a file using write()
-
hi i have exactly the same problem, but i don't understand how you use the scriptableinput stream object. is it purely javascript? do i have to download additional libraries to plug-ins? -
FileSystemObject - reading a picture file
hi,
i am trying to use the fileSystemObjec t methods to read a picture file as a text (forcefully), store it in a variable, and then i try writing it back to a file and opening it up with a text editor. I just don't get why they get corrupted:
var ForReading = 1;
var TriStateUni = -2;
var fso = new ActiveXObject(" Scripting.FileS ystemObject");
var newFile = fso.OpenTextFil e(localPath, ForReading,...
No activity results to display
Show More
Leave a comment: