title: How to read contents of file using file path in javascript
body: <p>I have full path of file e.g "D:\File\1.xml" and want to read contents of it in javascript.
  I tried using File and FileReader API's but no success. Following piece of code I tried.</p>
  
  <pre><code>var path = "D:\File\1.xml";
  var file = new File(path); //Doesn't work
  var fileReader = new FileReader(file); //filereader expects file object
  </code></pre>
  
  <p>Can anyone help out how to read local files from file path in javascript or how to create File object successfuly from path.
  Thanks</p>