title: Read html line by line in VBScript
body: <p>I have a script that will pull the html down and put it into a text or HTML file. I can then parse the text file line by line, but I'd rather either parse the website itself or parse the textstream as I get it. Is this possible using VBS (my scripting languages are limited)?</p>
  
  <p>Code:</p>
  
  <pre><code>dim URL
  url = "www.something.com"
  set wshshell = wscript.createobject("wscript.shell")
  set http = createObject("microsoft.xmlhttp")
  on error resume next
  http.open "GET", URL, FALSE
  http.send
  if err.number = 0 then 
      outputFile.writeline http.responsetext
  else
      wscript.echo "error " &amp; err.number &amp; ": " &amp; err.description
  end if
  set wshshell = nothing
  set http = nothing
  </code></pre>
  
  <p>patchStatusFile.close</p>
  
  <p>It works fine if I write to an external HTML file. I was wondering if I HAD to write to a file or can I parse the stream first? ie: </p>
  
  <pre><code>strToLookAt = http.responsetext
  
  do until strToLookAt.atEndOfStream 
      strLine = strToLookAt.readLine 
      if strLine = "the thing I'm looking for" 
          ...do stuff... 
      end if 
  loop
  </code></pre>