Both files are checked for EOF