You should use hash tables it's better, simpler code and when you have a large number of entries takes less time to access than a sequential text file.