Re: How do I copy a file from the Internet

Stuart Dunkeld <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
\this should do it:

System.Net.WebClient client = new WebClient();
client.DownloadFile(Uri, filename);

--stuart

On Mon, Nov 17, 2008 at 5:16 PM, Eddie Lascu <[email protected]> wrote:
> I am investigating this (should be simple, I guess) but if anyone knows a
> shortcut, perhaps wouldn't mind sharing it.
> I need to save a local copy of a file that is located on the Internet, at a
> fix URI: http://.... File.Copy doesn't work, saying that it cannot support
> URIs.
>
> TIA,
> Eddie
>
> ===================================
> View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives
>

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.