I am using following code to read local file.
request = new (window.ActiveXObject || XMLHttpRequest)("Microsoft.XMLHTTP");
request.open("GET", url, 0);
request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
request.send();
document.write(request.responseText);
return request.responseText;
But it will not work in IE.It throws an error 'Access Denied'.Is there any other way to read local file using java script?