in reply to parsing a file

you could consider rolling your own with a regex (see: perlre) or grep.