Skip to content

Instantly share code, notes, and snippets.

require 'set'
file = File.new("data")
storage = Hash.new {}
file.each_line do |line|
date, key, value = line.split(';')
storage[date][key] = value
end