Could anyone please show me a simple code for downloading a file from internet with a URL,
Line by Line with streamreader
Printable View
Could anyone please show me a simple code for downloading a file from internet with a URL,
Line by Line with streamreader
The simplest one:
Code:Dim client As New Net.WebClient
client.DownloadFile("address", "filename")
client.Dispose()
LIne by line with steamreader
WebClient is just a specific implementation of HTTPWebRequest/Response. Sort of "wrapper" class, so using it is perfectly OK.
Thread moved from 'Database Development' forum to 'VB.Net' (VB2002 and later) forum.
Yep, thanks for moving it to the appropriate forum. :)