title: How to read text from a text file in the XAP?
body: <p>I'm working on an out-of-browser Silverlight program, and I have successfully gotten it to open local files by means of an OpenFileDialog.  However, now I need it to open a file from within its own XAP (no browsing necessary, the file to open is hard-coded). I am trying to use this code, but it's not working:</p>
  
  <pre><code>using (StreamReader reader = new StreamReader("Default.txt"))
  {
     TextBox1.Text = reader.ReadToEnd();
  }
  </code></pre>
  
  <p>This code throws a <code>SecurityException</code> that says "File operation not permitted. Access to path 'Default.txt' is denied."  What am I doing wrong?</p>