title: How to read in a txt file in XNA 4 for Windows Phone 7?
body: <p>I had a look at this previous question however this doesn't seem to work for XNA 4 for a Windows Phone 7 project: <a href="https://stackoverflow.com/questions/1234426/xna-framework-importers">XNA Framework Importers</a></p>
  
  <p>I've been trying to use:</p>
  
  <pre><code>string line; 
  using (StreamReader sr = new StreamReader("credits.txt"))
  {
      while ((line = sr.ReadLine()) != null)
      {
           //reads line by line until eof        
           //do whatever you want with the text
      }
  }
  </code></pre>
  
  <p>`</p>
  
  <p>but this is throwing a System.MethodAccessException "Attempt to access the method failed: System.IO.StreamReader..ctor(System.String)"</p>
  
  <p>Do I need to look at using IsolatedStorage for this instead?</p>
  
  <p>Edit: Please note I am trying to load a pre-prepared file, not save settings for a running application. e.g. a text file containing credits that I will only read in at run time but need to be able to edit during design time.</p>