Promote Your Blog
Google

Monday, January 23, 2012

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()

No comments:

Post a Comment