in reply to How to extract from the array...exemple txt file:
Hmmmm Homework?
I would suggest taking a look at split and hashing for this example
Originally posted as a Categorized Answer.