New to 2005 need help with loading files into 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?
Dim fileContents as String
fileContents = My.Computer.FileSystem.ReadAllText("C:\My Portfolio\Resources\AboutMe.txt")
Hope this helps,
Jay
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
reader.Close()
'//Content contains content from the text file.