Fork me on GitHub

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);
posted @ 2014-04-21 13:17  乔闻  阅读(588)  评论(0编辑  收藏  举报