From: "Darren H." Date: 2011-11-14T02:21:19+09:00 Subject: Re: Syntax Error J- This is an error i get now, C:\>ruby test1.rb enter Product ID Number: 1001 Enter Qty: 2 test1.rb:12:in ``': No such file or directory - price variable (Errno::ENOENT) from test1.rb:12:in `block in
' from C:/Ruby192/lib/ruby/1.9.1/csv.rb:1768:in `each' from C:/Ruby192/lib/ruby/1.9.1/csv.rb:1202:in `block in foreach' from C:/Ruby192/lib/ruby/1.9.1/csv.rb:1340:in `open' from C:/Ruby192/lib/ruby/1.9.1/csv.rb:1201:in `foreach' from test1.rb:9:in `
' C:\> The price column is the 3rd one so it should be -price = row[2].to_f # fetch, convert from string, and store in `price variable` Thanks for the help I really appreciate it. -Darren -- Posted via http://www.ruby-forum.com/.