javarookie
Programmer
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.
<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.