Skip to content

Instantly share code, notes, and snippets.

@chelm
Created February 10, 2011 17:02
Show Gist options
  • Save chelm/820890 to your computer and use it in GitHub Desktop.
Save chelm/820890 to your computer and use it in GitHub Desktop.
file = File.open('ark_temps.csv','r')
lines = file.readlines()
#a = [1,2,3,4,5]
lines.each do |ln|
values = ln.split(',')
puts values.length
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment