我想从网站下载一个文本文件,因为我知道它的URL。
答案 0 :(得分:4)
Axaptapedia.com, loading Web Documents中有几个例子。这些示例使用Microsoft .NET Framework。以下代码来自Axaptapedia:
public static void TEST_DownloadString (Args _args)
{
System.Net.WebClient webClient = new System.Net.WebClient();
;
info(webClient.DownloadString('http://axaptapedia.com'));
}