日期:2014-05-18  浏览次数:20443 次

asp.net读出文本文档
asp.net读出文本文档

------解决方案--------------------
File.ReadAllText(Server.MapPath("~/test.txt"));
假定test.txt位于网站根目录下。
------解决方案--------------------
LZ去学一下 数据流。。专门用于操作文档的
using System.IO;
------解决方案--------------------
探讨
File.ReadAllText(Server.MapPath("~/test.txt"));
假定test.txt位于网站根目录下。