Alex Gordon
Alex Gordon

Reputation: 60912

reading a remote text file into a string in vb.net

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

Answers (1)

Matt Greer
Matt Greer

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

Related Questions