unable to download http file

studentintau's Avatar, Join Date: Aug 2007
Light Poster
I would thank you if you help me with the next subject:

I tried to download http file to c drive, but it did not work.

Here is the code I wrote :
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace t2
{
    class Program
    {
        static void Main(string[] args)
        {
            WebRequestMethods.File.DownloadFile("http://www.eng.tau.ac.il/students/forms/t4.pdf", "c:");
        }
    }
}

Last edited by shabbir; 20Aug2007 at 07:55.. Reason: Code block
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Please read the documentation properly, it says that WebRequestMethods.File.DownloadFile doesn't have a 2nd parameter!