title: Storing variables from parsed text file using javascript
body: <p>The text file contains information that I want to use with my website for logging in purposes</p>
  
  <p>Text file contains the following..line by line</p>
  
  <p><strong>user:password
  user2:user2password</strong></p>
  
  <p>I have tried using blob to read the text file but variables are not getting stored so I would like to know where I am going wrong or if I am even able to read the file using this method</p>
  
  <pre><code>function readFile(){
      var fileName = txtName.value;
      file = login.txt;
      var blob = file.read();
      var readText = blob.text;
      var lines = data.split("\n &amp;&amp; : " );
          //Adding the file content to the label placed
      lblFileContent.setText(readText);
      Ti.API.info(readText);
      // dispose of file handle &amp; blob.
      file = null;
      blob = null;
  }
  </code></pre>