File manipulations such as Read/Write local files using Javascript without server
问题 I'm just trying on the task, file manipulation system using java script. As I was referred from W3C File API( https://www.w3.org/TR/FileAPI/ ), we can only read local files like var file = "test.txt"; function readTextFile(file) { var readFile; if(window.XMLHttpRequest){ // for new browsers readFile = new XMLHttpRequest(); }else{ //for old browsers like IE5 or IE6 readFile = new ActiveXObject("Microsoft.XMLHTTP"); } readFile.open("GET", file, true); readFile.onreadystatechange = function() {