Hi, I am making an application and I need to read text with to be more specific
I want to make my application read txt files but that are in web (e.g www.somesite.com/myfile.txt)
grab the text from that file and load it in a Richbox
here is what Ive done until now...
But with this code I got an error : "URI formats are not supported."Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click RichTextBox1.LoadFile("http://mysite.com/sometext.txt", RichTextBoxStreamType.PlainText) If RichTextBox1.Text = "" Then MsgBox("The text has been loaded") End If End Sub
So as far as I understand Richbox can't read web files directly without maybe downloading them in local PC then reading.
But I don't want the download method...
So is there any method that can read web text files DIRECTLY ??




Reply With Quote