我试图加载一个文本文件用VB的.Net,这样我可以使用它与StreamReader对象。例如:www.fakesite.com/text.txt
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
感谢
这是一个特别的网址,并已$服务器页上$ psent
It is of a particular URL and is already present on the server
您可以使用的 的HttpWebRequest
和它的 的GetResponse
的方法,它给你的 WebResponse类
上,你可以调用的 GetResponseStream
获得 流
对象传递给您的 的StreamReader
。
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
.
(晕了吗?)