c detect a change of line in a file code example Example: c detect a change of line in a file if( c == '\n' ) printf("Changed line :P");