From: James Edward Gray II Date: 2011-01-12T07:56:25+09:00 Subject: Re: Read csv file. Beginner's HELP!! On Jan 11, 2011, at 4:50 PM, Kamarulnizam Rahim wrote: > This is the code from line 9: > > CSV.foreach('C:/Users/nizam/test_q.csv', 'r') do |row| > > What do you think is the problem? It's my fault. I forgot to tell you to remove the read mode. It's implied by foreach(). You want: CSV.foreach('C:/Users/nizam/test_q.csv') do |row| James Edward Gray II