in reply to Parsing a generic file

The monk is right. And it won't help you much if someone just writes the code for you. Have a look at How do I post a question effectively? If you actually write some code, and ask about where you're stuck, people will be more likely to help you out!

Best of luck.