User Profile

Collapse

Profile Sidebar

Collapse
novadoft
novadoft
Last Activity: Jul 27 '06, 02:39 AM
Joined: Jun 29 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • novadoft
    started a topic cannot write to a file using write()

    cannot write to a file using write()

    [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...
    See more | Go to post

  • novadoft
    replied to how read bin file with mozilla?
    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?
    See more | Go to post

    Leave a comment:


  • novadoft
    started a topic FileSystemObject - reading a picture file

    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,...
    See more | Go to post
No activity results to display
Show More
Working...