I am new to ruby and i am trying to read the data from CSV file. The CSv
file has 240 rows and a single Column in it. I wanted to read the row by
row data and process that and then fetch the next row. Can some one
please let me know how i can implement it. Please refer me some
documents so that i can improve my Ruby Knowledge. Thanks all.
there are many libraries for reading CSV in ruby. There’s even a class
in the standard library:
Take a look at the first example, (Reading → From a File → A Line at a
Time) you should be able to insert your own file name and then do
something with each row of the csv file. A good first thing to do is
simply put it onto the terminal, so that you know everything is working!
Take a look at the first example, (Reading → From a File → A Line at a
Time) you should be able to insert your own file name and then do
something with each row of the csv file. A good first thing to do is
simply put it onto the terminal, so that you know everything is working!
Hi Joe,
I could able to read the row contents one after the other and is working
fine. Thanks for the reply.