Skip to content

Instantly share code, notes, and snippets.

@Mikr0Tik
Created October 14, 2008 12:09
Show Gist options
  • Save Mikr0Tik/16704 to your computer and use it in GitHub Desktop.
Save Mikr0Tik/16704 to your computer and use it in GitHub Desktop.
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