How can I make fscanf re-read a line upon a condition being met?

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-04-29T03:53:46Z Indexed on 2010/04/29 3:57 UTC
Read the original article Hit count: 215

Filed under:

while( fscanf( tracefile, "%s ", opcode ) != EOF ){blah}

Occasionally I need to cause fscanf to re-read a line upon a certain condition in my code being met. Is this possible; how would I do that?

Thanks.

© Stack Overflow or respective owner

Related posts about fscanf