K
Kamarulnizam Rahim
Hai,
Im new to Ruby programming. I got a job to create a program that can
obtain the content from a .csv file into .yml file. However at this
stage, im having trouble reading the .csv file. Here is the code i use:
#!/usr/bin/ruby
require 'rubygems'
require 'csv'
CSV.open('C:/Users/nizam/test_q.csv', 'r') do |row|
p row
end
puts "Hello World"
Here is the error message i get:
<#CSV io_type:File io_path:"C:/Users/nizam/test_q.csv" encoding:UTF-8
lineno:0 col_sep:"," row_sep:"\n" quote_char:"\"">
Btw, im using Netbeans IDE 6.9.1 to write my script. I know this is just
a silly error but still cant figure it out. Hope some one can help.
Thanks
Nizam
Im new to Ruby programming. I got a job to create a program that can
obtain the content from a .csv file into .yml file. However at this
stage, im having trouble reading the .csv file. Here is the code i use:
#!/usr/bin/ruby
require 'rubygems'
require 'csv'
CSV.open('C:/Users/nizam/test_q.csv', 'r') do |row|
p row
end
puts "Hello World"
Here is the error message i get:
<#CSV io_type:File io_path:"C:/Users/nizam/test_q.csv" encoding:UTF-8
lineno:0 col_sep:"," row_sep:"\n" quote_char:"\"">
Btw, im using Netbeans IDE 6.9.1 to write my script. I know this is just
a silly error but still cant figure it out. Hope some one can help.
Thanks
Nizam