Created
October 14, 2008 12:09
-
-
Save Mikr0Tik/16704 to your computer and use it in GitHub Desktop.
This file contains 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
string = File.open('my_file.csv'){|f| f.read} | |
p string | |
string.split("\n").each do |row| | |
row.strip.split("|").each do |col| | |
p(col) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment