OpenFIle directly not Dialog
Please I dont know where is the mistake.Any help.
function codigo(ruta){
var codigos = new Array();
codigos_tiempo =File(ruta).open("r"); // Open the file for reading
$.writeln(codigos_tiempo);
while (!codigos_tiempo.eof){
codigos[codigos.length] = codigos_tiempo.readln();
}
codigos_tiempo.close();
return codigos;
}
var lista_codigos=new Array();
lista_codigos=codigo("~/Documents/Israel/EPISODIO-1-MEDIA-LOG.txt");
$.writeln( lista_codigos)