title: Javascript: how to append data to a file
body: <p>how can i append data to a file using javascript?</p>
  
  <p>i tried to use this code, but i got an error:</p>
  
  <pre><code>var fso = new ActiveXObject("Scripting.FileSystemOject");
  var filepath = fso.GetFile("member.txt");
  var fileObject = fso.OpenTextFile(filepath, 8);
  file.WriteLine(id + "|" + pass);
  fileObject.close();
  </code></pre>
  
  <p>the error is on <code>var fso = new ActiveXObject("Scripting.FileSystemOject");</code>, written: <code>Error: Automation server can't create object</code></p>
  
  <p>is there any other way to append the file using javascript or the way to fix this? thanks :)</p>
  
  <p><strong>EDIT:</strong>
  i have doing what's written on <a href="http://windows.microsoft.com/en-US/windows/help/genuine/ie-activex?SignedIn=1" rel="nofollow">this</a>, and it still not working :/</p>