From: "Darren H." Date: 2011-11-11T11:38:07+09:00 Subject: Re: Reading CSV File > puts "enter Product ID Number" > product_id = gets.chomp > CSV.foreach("c:\plantproducts.csv") do |row| > if product_id == row[0] > do (price * qty) end end puts "Enter Qty) qty = gets.chomp # the price is given in the csv file when I run the code I get an error "syntax error, unexpected keyword_do_block do (qty * price) -- Posted via http://www.ruby-forum.com/.