First you need to learn how to use Google and then read the articles at the links.
For learning how to read a file start with
these links[
^].
To learn about hash storage
read this[
^].
After you have read those articles write some of your own code. If you have a problem, post the code where you are having the problem AND clearly state the problem including any error messages. We will then be glad to help you solve your problem.