|
-
Jan 20th, 2010, 06:24 PM
#1
Thread Starter
Junior Member
code for download
Could anyone please show me a simple code for downloading a file from internet with a URL,
Line by Line with streamreader
Last edited by Russellhenry23; Jan 20th, 2010 at 07:09 PM.
-
Jan 20th, 2010, 06:53 PM
#2
Lively Member
Re: code for download
The simplest one:
Code:
Dim client As New Net.WebClient
client.DownloadFile("address", "filename")
client.Dispose()
-
Jan 20th, 2010, 06:58 PM
#3
Thread Starter
Junior Member
Re: code for download
LIne by line with steamreader
-
Jan 20th, 2010, 07:23 PM
#4
Lively Member
Re: code for download
WebClient is just a specific implementation of HTTPWebRequest/Response. Sort of "wrapper" class, so using it is perfectly OK.
-
Jan 21st, 2010, 10:44 AM
#5
Re: code for download
Thread moved from 'Database Development' forum to 'VB.Net' (VB2002 and later) forum.
-
Jan 21st, 2010, 11:33 AM
#6
Lively Member
Re: code for download
Yep, thanks for moving it to the appropriate forum.
-
Jan 21st, 2010, 12:20 PM
#7
Re: code for download
 Originally Posted by Russellhenry23
LIne by line with steamreader
Step 1) Download File to specified Location
Step 2) Open StreamReader onto specified location
Step 3) Read File
Step 4) Stop Reading
Step 5 [optional]) Delete file
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|