in reply to noob with hash/data file question

There are so many errors, but the first thing you should notice is that you never read from your date file. (And what a poor name for an input file handle!)