title: Copy info from txt and paste in another vbscript
body: <p>I'm trying to copy a line of text from a .txt -> paste into another file and save. The code I have keeps giving me errors at the paste section. I am completely new at this and learning as I go. My main goal is to paste the info after <code>Host=</code> in another file. But I need to get this down first.</p>
  
  <p>Here is my code so far</p>
  
  <pre><code> ///OPEN FILE and READ
  Set objFileToRead = CreateObject("Scripting.FileSystemObject").OpenTextFile("C:\vnc\vnc.txt",1)
  strFileText = objFileToRead.ReadAll()
  objFileToRead.Close
  
  
  ' ///PASTE 
  Set objFSO = CreateObject("Scripting.FileSystemObject") 
  Set objFileToWrite = objFSO.OpenTextFile("c:\vnc\testfile.vnc", 2)
  objFileToWrite.Write strFileText
  objFileToWrite.Close
  </code></pre>