Just wanted to know is it possible to access/read a given file(if full filepath is enabled) using Javascript in HTML or any other technique.
I am quite new in HTML 5.
Thanks in advance
Thanks Vinod
Just wanted to know is it possible to access/read a given file(if full filepath is enabled) using Javascript in HTML or any other technique.
I am quite new in HTML 5.
Thanks in advance
Thanks Vinod
in HTML5 user allow you to process local files(reading only). See here
XMLHttpRequest object can be used to read files also
var txt = '';
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function(){
if(xmlhttp.status==200 && xmlhttp.readyState==4){
txt=xmlhttp.responseText;
}
}
xmlhttp.open("GET","abc.txt",true);
xmlhttp.send();