title: What's the best way to read the contents of a text file to a string in .NET?
body: <p>It seems like there should be something shorter than this:</p>
  
  <pre><code>private string LoadFromFile(string path)
  {
     try
     {
         string fileContents;
         using(StreamReader rdr = File.OpenText(path))
         {
              fileContents = rdr.ReadToEnd();
         }
  
         return fileContents;
     }
     catch
     {
         throw;
     }
  }
  </code></pre>