Hi, everyone. I need to write text to a TXT file. I'm running this script:
<script>
f=new File('c:\test.txt');
status=f.open('w');
f.write('test');
</script>
and I get an error: 'File' undefined.
What am I doing wrong? I got the example out of the book.
Hi, everyone. I need to write some text to a TXT file using javascript. I have the following script in y page
<script>
f=new File('c:\test.txt');
status=f.open('w');
f.write('test');
</script>
I get an error: 'File' undefined.
What am I doing wrong? I got this out of the book.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.