2010-11-21 69 views

回答

3

不知道你在說什麼內容的文件夾有關,但如果我們假設它是一些子目錄:

public ActionResult Index() 
{ 
    return File(Server.MapPath("~/content/foo.txt"), "text/plain"); 
} 

其中~表明你的網站的根目錄。