title: Javascript read text file from current directory
body: <p>How to read text file (text1.txt) from current directory using javascript without jquery. I tried the following code.</p>
  
  <pre><code>var file = "text1.txt";
  var reader = new FileReader();
  var result = reader.readAsText(file);
  console.log(result);
  </code></pre>