摘要:
public ActionResult GetFile(string id) { var path = _db.MailAtchs.Where(p => p.MailID == new Guid(id)).Select(p => p.Path); //获取文件名字 ArrayList n = new Arr... 阅读全文
摘要:
@{ var dataFile = Server.MapPath("~/App_Data/Persons.txt"); Array list = File.ReadAllLines(dataFile); } @{ foreach (string li in list) { forea... 阅读全文