如何在本站下载他人的文件啊?
如何在本站下载他人的文件啊? --------------------编程问答-------------------- 用WebClient,WebClient client = new WebClient ();
// Add a user agent header in case the
// requested URI contains a query.
client.Headers.Add ("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
Stream data = client.OpenRead (strUri);
StreamReader reader = new StreamReader (data);
string s = reader.ReadToEnd ();
--------------------编程问答-------------------- 是在csdn这个网站上下载东西
补充:.NET技术 , C#