From: Salil Gaikwad Date: 2009-02-28T14:00:32+09:00 Subject: Re: How to find the specific row of CSV file. My code is as follows @parsed_file=CSV::Reader.parse(File.open("auctiva.csv", 'rb')) @parsed_file.each do |row| if row[last]=="XYZ" // // some more code here end end i want to run my code only for last row and also if row[last]=="XYZ". There are some more requirement 4 my project if row[last]=="XYZ" is FALSE the loop should start from 1st row. -- Posted via http://www.ruby-forum.com/.