title: Display contents of Text File in MVC3 Razor
body: <p>I am trying to display contents of a text file in a view.
  So far I have been able to get the following code for the controller:</p>
  
  <pre><code>public ActionResult ShowFile()     
  {         
       string filepath = Server.MapPath("\\some unc path\\TextFile1.txt");
       var stream = new StreamReader(filepath);         
       return File(stream.ReadToEnd(), "text/plain");      
  } 
  </code></pre>
  
  <p>I do not know how to go ahead with the view.</p>
  
  <p>Kindly advise.</p>