I'm trying to load a text file with VB .Net so that I can use it with a streamreader object. for example: www.fakesite.com/text.txt
Thanks
It is of a particular URL and is already present on the server
I'm trying to load a text file with VB .Net so that I can use it with a streamreader object. for example: www.fakesite.com/text.txt
Thanks
It is of a particular URL and is already present on the server
You can do this with HttpWebRequest
and its GetResponse
method, which gives you a WebResponse
on which you can call GetResponseStream
to get a Stream
object to pass to your StreamReader
.
(Dizzy yet?)