From: Li Chen Date: 2008-07-22T22:00:19+09:00 Subject: Re: read CSV file using csv library kranthi reddy wrote: > Hey you can use faster csv instead using the standard csv ruby library. > Anyways the answer to your question is as below > CSV::Reader.parse(File.open('/root/Desktop/lukcy.csv', 'rb')) do |row| > p.row > end > This reads the entire row form the csv file.When you need a specific row > to > be rread you can use the foreach iterator or something like row[0] which > returns the entire first column elements. > kranthi. Hi Kranthi, I just need to print out the first column of each row and here are what I get(only show two, first column of row 1 and row 2): # # but what I actually need is Frontside A001:The new student was visibly abashed when the teacher scolded him in front of the class for reaching late I am not sure why I can't print out the part I need. Thanks, Li -- Posted via http://www.ruby-forum.com/.