Basically, JavaScript can not read and write a file. But it should be clearer: JavaScript can not read and write a file “on server”. What about on client side? Yes, JavaScript can read and write file on client side.

Here I share HTML and JavaScript code that can perform (a sort of) file read and write on client machine.

And here is the live result:

Habibie
Habibie is an Indonesian Java, C#, PHP, MySQL, HTML5, CSS3 & JavaScript programmer. He is also a good graphic designer, video editor, animator and 3D modeler.

Related Post

How can we read and write a file using JavaScript