From: Mmcolli00 Mom Date: 2008-12-03T23:09:38+09:00 Subject: How do you make a hash key using a wordy string? Hello everyone. How do you make a hash key using a string? For instance, txt file... 1 This is a string 22234343 2 This is another string 434355455 3 This is a different string 34324545 file = File.open("mytext4hash.txt") file.each_line do |line| rows = {} key, val = line.chomp.split("""",4) rows[key] = val #this is where I am having issue. puts rows["1 This is a string"] #need this to point to only "22234343" end Thanks in advance. MC -- Posted via http://www.ruby-forum.com/.