Why don't you add directly to the hash file instead of writing to a text first and then loading to the hash table? It seems unnecessary.