save html file


  • Hi

    I have 10 diffrent url like shown below , i want to download it in some folder and i want to fetch the data i am working in c#,  waiting for the reply

    files are in html format



    Monday, November 28, 2011 10:01 AM


All replies

  • Monday, November 28, 2011 10:51 AM
  • Thnaks Prahalnathan for replying below is the code for achieving the above req


    System.Net.WebClient webClient = new WebClient();

                    webClient.DownloadFile("", @"D:\Test\localfile1.html");

                    webClient.DownloadFile("", @"D:\Test\localfile2.html");

                    webClient.DownloadFile("", @"D:\Test\localfile3.html"); 

    • Proposed as answer by Prahalnathan Monday, November 28, 2011 11:39 AM
    Monday, November 28, 2011 11:37 AM
  • Hi mohammad,

    I'm glad to hear that you got it working. If you have any difficulty in future programming, we welcome you to post here again.

    Bob Shen [MSFT]
    MSDN Community Support | Feedback to us
    Wednesday, December 07, 2011 3:23 AM