I'm attempting to use a variable (i) to read the multiple files within a folder. However this doesn't seem to be working. Can you tell me what I'm doing wrong?
For i = 0 To counter
Dim objReader As New System.IO.StreamReader(getRestranName(i))
If System.IO.File.Exists(folderName) Then
Do While objReader.Peek() <> -1
txtLine = objReader.ReadLine()
If lineNo = 3 Then
programName = Trim(Microsoft.VisualBasic.Left(txtLine, 10))