title: WIndows Phone 7 reading file to String
body: <p>I'm trying to read a file entirely to a String variable.</p>
  
  <p>I did this:</p>
  
  <pre><code>   String text;
              using (var store = IsolatedStorageFile.GetUserStoreForApplication())
              using (var readStream = new IsolatedStorageFileStream("k.dat",     FileMode.Open,        store))
              using (var reader = new StreamReader(readStream))
              {
                  text= reader.ReadToEnd();
              }
  
          textBlock1.Text = text;`
  </code></pre>
  
  <p>It gave me a "Operation not permitted on IsolatedStorageFileStream" message from an IsolatedStorageException.</p>
  
  <p>What am I doing wrong?
  I tried by adding a .txt and .xml file in the file name, but it didn't work.
  Where am I to put the file anyway? I tried </p>
  
  <p>~\Visual Studio 2010\Projects\Parsing\Parsing\k.dat</p>
  
  <p>I'm parsing it later using:</p>
  
  <pre><code>XmlReader reader = XmlReader.Create(new StringReader(xmldata));
              flagLink = false;
              while (reader.Read())
              {
  //and so on
  </code></pre>