title: Read local file using XMLHttpRequest in IE
body: <p>I am using following code to read local file.</p>
  
  <pre><code>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;
  </code></pre>
  
  <p>But it will not work in IE.It throws an error '<strong>Access Denied</strong>'.Is there any other way to read local file using java script?</p>