Created
September 23, 2014 04:48
-
-
Save harshalbhakta/6d1704cfcbb661e1ec2c to your computer and use it in GitHub Desktop.
Read CSV file in Ruby.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'csv' | |
| filename = ARGV[0] | |
| CSV.foreach(filename) do |row| | |
| puts row | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment