just do getlines and discard the ones you do not want to skip a line or two.
what the line starts with does not matter.
if you need it to ignore any of a bunch of starting tokens, you need a little more smarts than the hard coded skip 6 letters, but the general idea is the same: figure out how much you want to skip (to the first space? until you hit a " character? whatever rules work for you) and then pull the substring you want out of it.
you can get very fancy, using regx or finite state machine or other parsers. I generally take the path of least effort, until the problem is shown to be difficult enough to get out the big tools. A guy I worked with would use the ancient C language compiler compiler stuff (yacc/lex/etc) to make parsers.