title: Read line per line a txt file with VBS
body: <p>I'm trying this code:</p>
  
  <pre><code>filename = "test.txt"
  listFile  = fso.OpenTextFile(filename).ReadAll
  listLines = Split(listFile, vbCrLf)
  For Each line In listLines
     WScript.Echo line 
     'My Stuff
  Next
  </code></pre>
  
  <p>Or this other:</p>
  
  <pre><code>filename = "test.txt"
      Set fso = CreateObject("Scripting.FileSystemObject")
      Set f = fso.OpenTextFile(filename, ForReading)
      Do Until f.AtEndOfStream
        myLine = f.ReadLine
        WScript.Echo myLine
        'My Stuff
      Loop
  </code></pre>
  
  <p>Why in both cases it echoes all lines at once, and of course I'm unable to work line by line? Any idea?</p>