示例代码:
Uri uri = new Uri("ftp://ftp.microsoft.com/SoftLib/Readme.txt");
if (uri.Scheme == Uri.UriSchemeFtp)
{
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(uri);
request.Method = WebRequestMethods.Ftp.DownloadFile;
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string tmp = reader.ReadToEnd();
Panel1.GroupingText = tmp;