Ad Code

Responsive Advertisement

How To Read From A File In Visual Basic

Imports System.IO

Dim readLineByLine As String

Dim fileReader As New StreamReader("fileToBeRead.xtn")

Do Until fileReader.EndOfStream
readLineByLine = fileReader.ReadLine()
'Take some action on line read
Loop

fileReader.Close()

Post a Comment

0 Comments