New to 2005 need help with loading files into program

Hi i just recently got 2005 and i need help with loading a text file into my program.
I tried to use:
open "C:\My Portfolio\Resources\AboutMe.txt" for input as #3
but this does not work. What should i do?
[216 byte] By [BlokHead] at [2008-2-10]
# 1
If you want to get all the contents of the text file as a string you can do something like:

Dim fileContents as String
fileContents = My.Computer.FileSystem.ReadAllText("C:\My Portfolio\Resources\AboutMe.txt")

Hope this helps,
Jay

JaySch_MS at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
If your looking at older versions of VB.NET and need to do the same - you wont have My namespaces its fairly straightforward.

Sounds as though you from VB Classic with that syntax.

Dim reader As StreamReader = New StreamReader("c:\test.txt")

Dim strline As String
Dim Content As String = ""

Do

strline = reader.ReadLine
If strline Is Nothing Then Exit Do

Content = Content & strline & vbCrLf
Loop

reader.Close()

'//Content contains content from the text file.

spotty at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic Language...