title: Read File and store element as array Scala
body: <p>I am new to Scala and this is the first time I'm using it. I want to read in a textfile with with two columns of numbers and store each column items in a separate list or array that will have to be cast as integer. For example the textfile looks like this:</p>
  
  <pre><code>1 2 
  2 3 
  3 4 
  4 5 
  1 6 
  6 7 
  7 8 
  8 9 
  6 10 
  </code></pre>
  
  <p>I want to separate the two columns so that each column is stored in its on list or array.</p>