i have a while loop that FGETS through an external file and then executes function a() over each line.
what i want to do is to first look at the first line. if the line meets certain criteria, I want to execute function b() with it and then have the while loop work the a() function over lines 2+.
if the first line does NOT match the criteria, then i want the while loop to work the a() function over lines 1+.
is this possible without having to close and reopen the file again?
After you read first line you can reset file pointer to start of file, using fseek