unable to download http file

Light Poster
19Aug2007,22:36   #1
studentintau's Avatar
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
Team Leader
20Aug2007,10:28   #2
pradeep's Avatar
Please read the documentation properly, it says that WebRequestMethods.File.DownloadFile doesn't have a 2nd parameter!