From: "Darren H." Date: 2011-11-13T07:06:59+09:00 Subject: Re: Reading CSV File This is the output of the error C:\>ruby test.rb test.rb:14: syntax error, unexpected keyword_do_block do (price * quantity) ^ What I am trying to do is: -Get the users input for product_id -Get Users input for quantity -Lookup in the CSV file (which contains product_id,name,price,and type) to match the users input for product_id and match it with price -Then multiply price (from the CSV file) times quantity which the user gives and produce an output. --Darren -- Posted via http://www.ruby-forum.com/.