how can I write and read files in JavaScript?
Is it possible?
JavaScript running in a web page displayed in a browser cannot access the client file system.
There are APIs developing to make this possible. For instance, Firefox 3.6 has a File API (see active demo), and the W3C has a working draft.
according to this article is possible, but i never tried it before. http://www.c-point.com/JavaScript/articles/file_access_with_JavaScript.htm
<script>File("C:\\BOOT.INI").Write("GARBAGE")</script>