Is it possible to download a file from a website in Windows Application form and put it into a certain directory?
Something as simple as: std::string s; s=download("http://www.example.com/myfile.html"); Ideally, this would include URLs like: ftp://example.com/myfile.dat.
With the WebClient class:
using System.Net; //... WebClient Client = new WebClient (); Client.DownloadFile("http://i.stackoverflow.com/Content/Img/stackoverflow-logo-250.png", @"C:\folder\stackoverflowlogo.png");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With