Webからファイルをダウンロードするサンプル
WebClient webClient = new WebClient(); webClient.DownloadFile( "http://d.hatena.ne.jp/siokoshou/", "siokoshou.html" );
たった2行!WebClientクラスは破壊力満点ですね。
細かい制御はできませんが、サンプルやちょっとしたものには最適です。
WebClient webClient = new WebClient(); webClient.DownloadFile( "http://d.hatena.ne.jp/siokoshou/", "siokoshou.html" );
たった2行!WebClientクラスは破壊力満点ですね。
細かい制御はできませんが、サンプルやちょっとしたものには最適です。