That's not bad, but to be complete you should also check for DOS line endings (\r\n) in case those files are edited in a Windows machine.
As far as I know all libc implementations on windoze do automagic \r\n -> \n translation when reading file opened in 'text' mode (that is no "b" is appended to the fopen mode. stdin/stdout/stderr are in this mode, too). Also, when writing to filehandle that is in 'text' mode single \n again is translated to \r\n.
Checking for \r doesn't hurt, however.