Depening on the amount of characters during the last data keyed in, the program will skip over the request to enter Y (or N). What to do? Zach K.Code:locate(5,8);char codeIn[10]; printf("Code");locate(30,8);printf(": "); fgets(codeIn, sizeof(codeIn),stdin); if ( (p = strchr(codeIn,'\n')) != NULL ) *p = '\0'; strcpy(B.bill, billIn); strcpy(B.date, dateIn); strcpy(B.descr, descrIn); strcpy(B.euros, eurosIn); strcpy(B.code, codeIn); FILE *C; C = fopen("data2","ab"); fwrite(&B,sizeof(struct A),1,C); fclose(C); locate(6,23);printf("%s %s %s %s %s",billIn, dateIn, descrIn, eurosIn, codeIn); locate(6,24);printf("The above has been saved to disk"); int c; printf("Continue y / n : "); c = getchar(); if (c == 'y' || c == 'Y') { // do something } else {