摘要: 示例代码: Uri uri = new Uri("ftp://ftp.microsoft.com/SoftLib/Readme.txt"); if (uri.Scheme == Uri.UriSchemeFtp) { ... 阅读全文
posted @ 2011-02-11 10:51 IT苦行僧 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 示例代码: Uri uri = new Uri("http://www.wrox.com/"); if (uri.Scheme == Uri.UriSchemeHttp) { HttpWebRequest... 阅读全文
posted @ 2011-02-11 10:49 IT苦行僧 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 示例代码: Uri uri = new Uri("http://www.wrox.com/"); if (uri.Scheme == Uri.UriSchemeHttp) { HttpWebRequest... 阅读全文
posted @ 2011-02-11 10:40 IT苦行僧 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 示例代码: string filepath = Server.MapPath("Textfile.txt"); FileStream infile = File.OpenRead(filepath); byte[] buffe... 阅读全文
posted @ 2011-02-11 09:37 IT苦行僧 阅读(154) 评论(0) 推荐(0) 编辑