573Views3Replies

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!

3 Replies

user
lemonie (author)2010-12-25

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?

L


Select as Best AnswerUndo Best Answer

user
orksecurity (author)2010-12-25

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

Select as Best AnswerUndo Best Answer

user
NachoMahma (author)2010-12-25

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

Select as Best AnswerUndo Best Answer