I'm using fseek in a program to get to specific offsets in a text file.
Is there a way to get the line number I end up at when I do an fseek?
I'm using fseek in a program to get to specific offsets in a text file.
Is there a way to get the line number I end up at when I do an fseek?
Only if you process all the characters you skipped.