title: Read from a file into an array and stop if a ":" is found in ruby
body: <p>How can I in Ruby read a string from a file into an array and only read and save in the array until I get a certain marker such as ":" and stop reading?</p>
  
  <p>Any help would be much appreciated =)</p>
  
  <p>For example:</p>
  
  <pre><code>10.199.198.10:111  test/testing/testing  (EST-08532522)
  10.199.198.12:111  test/testing/testing  (EST-08532522)
  10.199.198.13:111  test/testing/testing  (EST-08532522)
  </code></pre>
  
  <p>Should only read the following and be contained in the array:</p>
  
  <pre><code>10.199.198.10
  10.199.198.12
  10.199.198.13
  </code></pre>