From: jake kaiden Date: 2011-04-14T10:37:28+09:00 Subject: Re: Help on hashing multiple keys and values hey adam - think i finally figured out what you were trying to do - sorry for not reading your first post a little more carefully... try this: hash = Hash.new{|key, value| key[value] = []} file = File.open("hashtext.txt", 'r') file.each do |line| line.chomp! parts = line.split(/\t/) hash ["#{parts[0]}"] << "#{parts[1]}" end file.close p hash["1"] p hash ["2"] p hash ["3"] => ["red"] ["blue", "green"] ["red"] - j -- Posted via http://www.ruby-forum.com/.