title: WP8 App misbehaving due to StreamWrite in JavaScript
body: <p>I would like to save the results calculated on html page in a <strong>textfile</strong> using javascript.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   window.onload = function () {
       var sw : StreamWriter = new StreamWriter("HTML_Results.txt");
       sr.Write('xyz");
  
       *** calculations ******
       sr.Write (result);
   }
  &lt;/script&gt;
  </code></pre>
  
  <p>by doing this, <strong><em>my WP8 App</em></strong> is misbehaving and not displaying images as usual. This app is an Image Fader (calculates FPS).</p>
  
  <p><strong>Also tried:</strong></p>
  
  <pre><code>StreamWriter sr;
  try {
      sr = new StreamWriter("\HTML5\HTMLResults.txt");
      sr.Write("xyz");
      File.SetAttributes("HTML5\HTMLResults.txt", FileAttributes.Hidden);
  } catch(IOException ex) {
       console.write ("error writing"); //handling IO
  }
  </code></pre>
  
  <p><strong>The aim is to:</strong></p>
  
  <ol>
  <li>Extract calculated values of several html pages(after getting loaded
  one by one) in a single text file.</li>
  <li>A Resultant HTML that reads this
  text file and displays results in a tabular format.</li>
  </ol>
  
  <p>Is there a better way to this job or the above can be rectified and used? Appreciate help.</p>