title: Javascript create array from local file.txt
body: <p>I have this text file in the same directory with my javascript program:</p>
  
  <p>test.txt</p>
  
  <pre><code>1
  2
  3
  4
  5
  </code></pre>
  
  <p>I want to load the data in array.
  So at the end i will have a array variable as follow:</p>
  
  <pre><code>[1,2,3,4,5]
  </code></pre>