title: Split text while reading line by line
body: <p>I am trying to read a text file with contents like this </p>
  
  <pre><code>ABC = Thefirststep
  XYZ = Secondstep
  ABC_XYZ = Finalstep=345ijk!r4+
  </code></pre>
  
  <p>I am able to read the file line by line using this </p>
  
  <pre><code>#!/usr/bin/ruby
  text =  '/tmp/data'
  f = File.open(text , "r")
  f.each_line { |line|
    puts line
  }
  f.close
  </code></pre>
  
  <p>What I want to do is have the values <code>TheFirststep</code> <code>Secondstep</code> and <code>Finalstep</code> assigned to separate variables. better if we use split().</p>