I want to use javascript to read a file called "orca.txt" to get a number (counter). I tried to do that:
var contador=0;
var fr = new FileReader();
fr.onload = function(e) {contador = e.target.result;};
fr.readAsText("orca.txt");
I know how to do that with an "input" but i don't want user choice a file... the file is always orca.txt
Can anyone help me?