How you go about handling this task depends on what the goal is. What do you want to do with the parsed information? Write it to another file?

If you want to keep it in memory, I recommend...