Other Tips
Sponsored Link

Read and process a line at a time
2013/01/15
  Read and process a line at a time
For example, Read "C:\test.txt" and processing a line at a time.
Option Explicit

Dim objFSO, objFile, arrLines

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\test.txt")

Do Until objFile.AtEndOfStream
    arrLines = objFile.ReadLine
    WScript.Echo arrLines
Loop

Matched Content
 
Tweet