title: Reading External Text File and Storing into an array
body: <p>How do i read an external text file, possibly using a Scanner and store 2 values from each line into an array.</p>
  
  <p>I would want to store the node id which is the first value of each line and the parent number which is the last value in each line.</p>
  
  <p>The text file contains what you see below</p>
  
  <pre><code>1       2,7,|0|BLACK|NULL
  10      3,4,12,|3|BLACK|3
  11      4,12,|4|BLACK|4
  12      8,10,11,|3|BLACK|8
  2       1,3,6,8,|1|BLACK|1
  3       2,4,5,6,8,10,|2|BLACK|2
  4       3,5,9,10,11,|3|BLACK|3
  5       3,4,8,|3|BLACK|3
  6       2,3,|2|BLACK|2
  7       1,8,|1|BLACK|1
  8       2,3,5,7,9,12,|2|BLACK|2
  9       4,8,|3|BLACK|8
  </code></pre>