Reputation: 60912
i have a remote text file on http://somewhere... that i need to read into a string variable in vb.net. what is the simplest way to do this?
Upvotes: 1
Views: 2198
Reputation: 62057
Use the System.Net.WebClient
class. In particular, the DownloadString
method.
http://msdn.microsoft.com/en-us/library/system.net.webclient.downloadstring(VS.80).aspx
Upvotes: 2