Hello I have i question. why i can't scanf character when i open file e.g.
Program just skips this and don't let enter character.Code:if ( ( fp = fopen( "list.txt", "w" ) ) == NULL ) { printf("No such file. \n"); system ("pause"); } else { printf("Enter character \n"); scanf("%c", &ch); } fclose(fp);