From: Christopher R. <cro...@uo...> - 2007-07-31 04:20:23
|
Is there a preferred way to peek ahead in inputfile iterator? The problem I'm having is that the only way to tell if a section is over is if the next line is the start of the new section (ie, it starts with a $). I can think of one work around, which is to use tell() to get the starting position of the new line, and then seeking back to that point it if it is the end of the section. Please let me know if there a more elegant way to do this. Chris |