title: Trying to read a local text file into an array (javascript/jquery) to be read from Androids WebView
body: <p>I am trying to read a local text file into an array using Javascript or jQuery. In the end this will be implemented in an Android application using Android's WebView. Here is what I have at the moment.</p>
  
  <pre><code>var cardRules = new Array;
  $.get('UserFile.txt', function(data){
          cardRules = data.split('\n');
          console.log(cardRules);
      });
  </code></pre>
  
  <p>However Chrome flashes up this error:</p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load file:///C:/Users/Sam/Documents/RingOfFire/UserFile.txt. Origin null is not allowed by Access-Control-Allow-Origin.</p>
  </blockquote>
  
  <p>Any help would be appreciated!</p>