From: James Edward Gray II Date: 2006-01-28T06:25:23+09:00 Subject: Re: csv help On Jan 27, 2006, at 3:18 PM, charlie bowman wrote: > def read > @data = String.new > CSV.parse open(@@csv_file).read do |row| > @data << row.to_s << ',' > end > @data > end To read a CSV file into an Array, try: array_of_csv_rows = CSV.read("my_file.csv") If you want to read CSV row by row, use: CSV.foeach("my_file.csv") do |row # use row here end Hope that helps. James Edward Gray II