首页 > 学院 > 开发设计 > 正文

asp.net读取文件

2019-11-17 03:12:56
字体:
来源:转载
供稿:网友

asp.net读取文件

context.Response.ContentType = "text/html";        string fullpath = context.Server.MapPath("hello.htm");        context.Response.Write(fullpath);        string content = System.IO.File.ReadAllText(fullpath);        context.Response.Write(content);

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表