Skip to content

Instantly share code, notes, and snippets.

@junpeitsuji
Created August 7, 2016 08:49
Show Gist options
  • Save junpeitsuji/65cecba0a36c15e12d9f4832fb6a9e43 to your computer and use it in GitHub Desktop.
Save junpeitsuji/65cecba0a36c15e12d9f4832fb6a9e43 to your computer and use it in GitHub Desktop.
# encoding: utf-8
array = []
File.open("leech.csv") do |io|
io.each do |line|
v = line.split(",")
v2 = v.map{|a| a.to_i}
array.push v2
end
end
p array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment