title: double spit txt file by new line and ";"
body: <p>I have to douple split my txt file. The txt file looks like</p>
  
  <pre><code>1; Kategorija1
  2; Kategorija2
  3; Kategorija3 
  4; ...
  </code></pre>
  
  <p>I need to put this in select which I have succeeded  but I did manage only splitting new line. I need to split both new line and <strong><code>";"</code></strong> putting text in select and saving id ("1;") in value of select.. </p>
  
  <pre><code>function readAll()
  {
    var fso = new ActiveXObject("Scripting.FileSystemObject");  
    var txtFile = fso.OpenTextFile("kategorije.txt", 1, false, 0);         
  
    var fText = txtFile.ReadAll();  
    txtFile.Close();  
    fso = null  
    var array = fText.split("\r\n");
    var sel = document.getElementById("dropdown2");
    for (var i=0; i&lt;array.length; i++)
    {
      var opt = document.createElement("option");
      opt.innerHTML = array[i];
      opt.value = array[i];
      sel.appendChild(opt);
    }
  }  
  </code></pre>