cdoverlaw Posted July 21, 2004 Posted July 21, 2004 how do i load the contents of a text file located on the internet (will be located at http://www.revoshift.com/paid) into a variable (Called Paid) Jonathan Quote
Administrators PlausiblyDamp Posted July 21, 2004 Administrators Posted July 21, 2004 You could simply create a variable of type WebClient and get it to download the contents The following will download this thread in to a string Dim b() As Byte Dim wc As New System.Net.WebClient b = wc.DownloadData("http://www.xtremedotnettalk.com/showthread.php?t=87115") Dim s As String = System.Text.ASCIIEncoding.ASCII.GetString(b) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.