![]()
/*★ URL を指定してホームページを取得 前田 稔 ★*/
#using <System.dll>
using namespace System;
using namespace System::Net;
void main()
{
WebClient^ wc = gcnew WebClient();
try
{
wc->DownloadFile("http://www.google.co.jp/index.html", "C:\\TMP\\test.html");
}
catch( Exception^ e )
{
Console::WriteLine( e->Message );
return;
}
Console::WriteLine( "ダウンロード終了!" );
Console::Read();
}
|
![]()