Computers |
|
| | #1 (permalink) |
| Junior Techie Join Date: May 2003
Posts: 82
| I just thought this could be useful, downloading files using the System.Net namespace .First of all you have to import the System.Net namespace Code: Imports System.Net Code: Dim webc As New WebClient THis is how you would download a file and as bytes: Code: Dim data() As Bytes = webc.DownloadData("http://www.tech-forums.net") Code: Dim stringdata As String = System.Text.Encoding.Ascii.GetString(data) Other way is to download things to a file: Code: webc.DownloadFile("http://www.tech-forums.net", "C:\techforumshtml.html") I hope this is useful to someone .
__________________ My specs: AMD Athlon 64 3500 Winchester MSI Neo2 Platinum NForce3 Ultra 2GB Corsair XMS Ram 520W Aspire Triple Fan PSU GeForce 6800 Ultra Sound Blaster Audigy 2 ZS 10,000 RPM 74GB Raptor 120GB Maxtor Princeton 17\' DVI Monitor Logitech Cordless Duo MX Creative P7800 7.1 Speakers AOpen DVD Dual Layer recorder |
| | |
| | #3 (permalink) | |
| Ultra Techie | And the C# version Quote:
__________________ ![]() See today\'s Penny-Arcade!(May contain foul lanuage) Pain is weakness leaving the body. PM Me for my MSN | |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |