Here is the portion of my C program:

```
FILE *fin_length;
int c;
int countNewLines = 0;

fin_length = fopen( argv[1], "r" );

while( ( c == fgetc( fin_length ) ) != EOF ) {

    if( c == 10 ) countNewLines++;
}

fclose( fin_length );

```

I run the program with command line arguments `./a.out myMessage.dat`. `myMessage.dat` is 5 lines long, where each line contains nothing more than a short sentence. Therefore, I expect the loop to find these 5 lines with `if( c == 10 )` and add one to `countNewLines` every time it finds a carriage return.

Why am I getting an infinite loop here?