Author Options:

how to read and write text files in the hard disk using just javascript? Answered

I am creating a webpage for my school so i need to save some data about the students.
I am not sving it in a server because it's working on my computer so please send some script which I can use to abhishekdtvm@yahoo.in!


You need to be a bit careful what data you have about students and what you do with it.
Why exactly do you need to go abut it this way, instead of uploading to the server?


Javascript's access to the hard disk is limited, to keep people from writing malicious scripts.

. I'm not familiar with JS, but most languages require you to first OPEN the file. You can then READ from (and/or WRITE to) the file before you CLOSE the file. Google is your friend.