Dynamically create a hash from flat file