What you're trying todo is to use old VB6 code. That will not work. Add an Import statement to include System.IO and use code similar to this:
Code:
Dim reader As New StreamReader("c:\text.txt")
Dim firstLine As String = reader.ReadLine()
Dim theRestOfTheText As String = reader.ReadToEnd()
reader.Close
OK, you probably don't just want to read the first line and then the rest but I just wanted to show what the two most used methods look like. If you want to read it line by line you can do something like this:
Code:
Do While Not reader.EndOfStream
fileLine = reader.ReadLine() '<- This assumes you have already declared fileLine as a string
'do whatever
Loop
reader.Close