title: Fetching second row from csv file in Ruby
body: <pre><code>actual_row = File.open(file_name[0], 'r')
   first_row_data = []
   CSV.foreach(actual_row) do |row| 
  first_row_data &lt;&lt; row[1]
   end 
  puts first_row_data
  </code></pre>
  
  <p>With this I am trying to fetch the second row of CSV but it is printing the second column instead.</p>