On Tue, Jan 25, 2011 at 9:52 PM, Kamarulnizam Rahim
<niezam54 / hotmail.com> wrote:
> Tried the code but give this error:
>
> C:/Ruby192/lib/ruby/1.9.1/csv.rb:1892:in `block (2 levels) in shift':
> Unquoted fields do not allow \r or \n (line 1). (CSV::MalformedCSVError)

Is the csv file you posted the same as the file you are testing with?

Since you are on Windows, try opening the file with 'rb' (read,
binary) instead of just 'r' (read)?

i.e. "CSV.open('ActionPlan.csv','rb').each do |row|"