Tom Powers
asked on
Read text File from a website into a vb.net win form
I am trying to read a text file into a scrolling label control in a vb.net win form.
The problem is i'm getting URI not Supported
Code is
Dim fsStream As New FileStream("http://powerzsoftware.com/Nba/Grizzlies.txt", FileMode.Open, FileAccess.Read)
Dim srReader As New StreamReader(fsStream)
Try
srReader.BaseStream.Seek(0 , SeekOrigin.Begin)
While srReader.Peek() > -1
Label6.Text = (srReader.ReadLine())
End While
srReader.Close()
Catch ex As IOException
Label6.Text = (ex.Message)
End Try
The problem is i'm getting URI not Supported
Code is
Dim fsStream As New FileStream("http://powerzsoftware.com/Nba/Grizzlies.txt", FileMode.Open, FileAccess.Read)
Dim srReader As New StreamReader(fsStream)
Try
srReader.BaseStream.Seek(0
While srReader.Peek() > -1
Label6.Text = (srReader.ReadLine())
End While
srReader.Close()
Catch ex As IOException
Label6.Text = (ex.Message)
End Try
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can you explain that grade?
ASKER
powerzsoftware.net
Powerzsoftware.com