title: Reading INI file using JavaScript
body: <p>Am not much familiar with JavaScript and the goal is to read a INI file and get the values. The sample INI file contains below items.</p>
  
  <pre><code>[Tutor]
  Name = Ajast
  Course = Victor
  
  [Order]
  Title = MAX New
  Ring = 12990
  </code></pre>
  
  <p>I want to read the above contents and store into a map like key value pair.</p>
  
  <p>For e.g., </p>
  
  <pre><code>Key = Name &amp; value = Ajast
  </code></pre>
  
  <p>Like that.....</p>
  
  <p>So far all i could do is, come up with a HTML/JS that will let user select a INI file and then read and show it's content in page.</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;reading file&lt;/title&gt;
      &lt;script type="text/javascript"&gt;
  
      var reader = new FileReader();
  
      function readText(that){
  
          if(that.files &amp;&amp; that.files[0]){
              var reader = new FileReader();
              reader.onload = function (e) {  
                  var output=e.target.result;
  
                  document.getElementById('main').innerHTML= output;
              };//end onload()
              reader.readAsText(that.files[0]);
          }//end if html5 filelist support
      } 
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;input type="file" onchange='readText(this)' /&gt;
      &lt;div id="main"&gt;&lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want the above task to be achieved in JavaScript. Can it be done?</p>