Link to home
Start Free TrialLog in
Avatar of Tom Powers
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
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tom Powers
Tom Powers

ASKER

Clever Idea Thank You.

powerzsoftware.net
Powerzsoftware.com
Can you explain that grade?