Hi, I'm using fgets to read in from a file...
What I want to do is have it check to see if the first character of a line is 'a', if so, it moves to next line and then does something with that next line... Here is what I have so far, but I'm not sure how to skip to the next line, if you see what I mean.
Thanks.
Code:
char OneLine[200];
FILE *fp = fopen("file.txt","r");
if (fp != NULL) {
while (fgets(OneLine, 199, fp) != NULL) {
if (OneLine[0] == 'a')
{
// SKIP TO NEXT LINE...
// if next line....
}