I'm trying to read lines from a file using:

Code:
Dim FileLine As String = ""
Dim File As Integer = FreeFile()

Open "C:\text.txt" for Line Input # File
But I get this error:

'Open' is not declared. File I/O functionality is available in the 'Microsoft.VisualBasic' namespace.

I tried to add Microsoft.VisualBasic as a reference, but it didn't work. Any help?