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