Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,


I am fairly new to Ruby and figuring out how it works. I have been assigned a task to create a script where I need to take 2 csv and replace data from one csv to another for certain column.

I don't know how do I get the column count. I guess if I can get the column count, I can manage to the get the data. Columns do not have headers.

I am using CSV gem in ruby.

TIA
Posted
Updated 27-Feb-15 12:59pm
v2
Comments
Sergey Alexandrovich Kryukov 27-Feb-15 18:59pm    
What have you tried so far?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900