3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by GeekByChoiCe
0

Yes: StreamReader
System.IO.StreamReader

Example:

Imports System.IO
Module mod378486
   Sub ReadFile()
      Dim strData As String
      Dim fileIn As New StreamReader("c:\science\test.txt")
      While Not (fileIn.EndOfStream)
         strData = fileIn.ReadLine()
         Console.WriteLine(strData)
      End While
      fileIn.Close()
   End Sub
   Sub Main()
      ReadFile()
   End Sub
End Module

Edited by thines01: added code

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.