http://www.cplusplus.com/reference/cstdio/fgets/[
^]
Set the second character to 0 if you discard the contents anyway.
There's one function to set the function pointer to a specific position:
fseek()
. However, you need to know the exact position or offset from the current position (in bytes) to use this function. If you don't have that, then the only way is to keep on reading and discard the results.