title: VBS Writing to Text File
body: <p>I want to use VB script to write to a text file and have tried using:</p>
  
  <pre><code>My.Computer.FileSystem.WriteAllText("C:\Users\Internet\test1.txt","This is new text to be added",True)
  </code></pre>
  
  <p>I get error -</p>
  
  <pre><code> "Cannot use parenthesis when calling a sub".
  </code></pre>
  
  <p>If I remove the parenthesis, I get error  -  </p>
  
  <pre><code>Object required: 'My'
  </code></pre>
  
  <p>Have searched the help forums without luck.
  I'm using windows vista. could I be missing some libraries or such ?</p>
  
  <p>Any help much appreciated.</p>