1.代码: string data = new WebClient().DownloadString("http://localhost:81/123.txt"); 转载于:https://www.cnblogs.com/gaara-zhang/p/9585235.html