On Sun, 24 Nov 2002 09:11 pm, Robert Cowham wrote: > f = File.open("fred.ini", "r") > f.each_line{|l| s = l.chomp.split("="); h[s[0]] = s[1]} > f.close You can condense that into one line: File.readlines("fred.ini"){...} The rest looks pretty much as good as you're gonna get. Tim Bates -- tim / bates.id.au