WP8 App misbehaving due to StreamWrite in JavaScript -



WP8 App misbehaving due to StreamWrite in JavaScript -

i save results calculated on html page in textfile using javascript.

<script type="text/javascript"> window.onload = function () { var sw : streamwriter = new streamwriter("html_results.txt"); sr.write('xyz"); *** calculations ****** sr.write (result); } </script>

by doing this, my wp8 app misbehaving , not displaying images usual. app image fader (calculates fps).

also tried:

streamwriter sr; seek { 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 }

the aim to:

extract calculated values of several html pages(after getting loaded 1 one) in single text file. a resultant html reads text file , displays results in tabular format.

is there improve way job or above can rectified , used? appreciate help.

perhaps i've misunderstood code looks you're trying write java within javascript scripting tags. cannot write java in html document. far know, client-side javascript (which given <script> tags guess you're trying write) can't perform kind of file i/o operations seem want here.

you need utilize node js utilize javascript , you're talking server-side. closest can on client-side using new localstorage feature in html5 (not supported browsers).

javascript

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -