From: James Edward Gray II Date: 2005-10-12T05:23:25+09:00 Subject: Re: Ruby noob with a coming from Python question On Oct 11, 2005, at 3:16 PM, ES wrote: > def map_from(file) > Hash[*File.readlines(file).map {|line| line.split '='}.flatten] > end Pretty much the same thing, but this should allow you to leave of some strips later, I hope: def hash_from_file( file_name ) Hash[*File.read(file_name).split("\n").map { |line| line.split ("=") }.flatten] end James Edward Gray II