title: Read file inside current directory using Vue
body: <p>I'm trying to get text file data located in the same directory where my .vue file is. But it's not returning the text on both chrome and firefox. Instead it's returning following response, which is not the content of my text file. </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width,initial-scale=1.0"&gt;
      &lt;title&gt;router-project&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div id="app"&gt;&lt;/div&gt;
      &lt;!-- built files will be auto injected --&gt;
    &lt;script type="text/javascript" src="/app.js"&gt;&lt;/script&gt;&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Following is my vue file. </p>
  
  <pre><code>&lt;template&gt;
    &lt;body&gt;
      &lt;div&gt; hello world &lt;/div&gt;
    &lt;/body&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  var $ = require('jquery');
  window.jQuery = $;
  
  export default {
    data () {
      return {
      }
    },
    created () {
      this.getPoemList(),
    },
  
    methods: {
     getPoemList () {
  
        function reqListener () {
           console.log(this.responseText);
        }
  
        var oReq = new XMLHttpRequest();
        oReq.addEventListener("load", reqListener);
        oReq.open("GET", "hello.txt");
        oReq.send();
  
  
      }   // getPoemList function ends
    }     // methods end
  }       // export default ends
  &lt;/script&gt;
  
  &lt;style scoped&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Contents of hello.txt are following. </p>
  
  <pre><code>hello
  </code></pre>