This is a snippet from the file it reads of:
CORINE WILBURN 05 10 12 14 25
PETER BOLDEN 02 10 22 23 27
RAPHAEL ESPINOSA 05 09 11 25 30
ALEXA VARNEY 02 07 09 12 24
STANLEY GRUBBS 03 04 12 26 30
ARMIDA RODGERS 12 16 17 20 29
HOPE LOVE 04 06 12 19 25
This is the code that reads it:
while(!feof(f)){
fscanf(f, "%s %s %d %d %d %d %d \n", first, last, &numbers[0], &numbers[1], &numbers[2], &numbers[3], &numbers[4]);
printf("%s %s %d %d %d %d %d\n", first, last, &numbers[0], &numbers[1], &numbers[2], &numbers[3], &numbers[4]);
}
This is what printf gives over and over:
CORINE WILBURN 6421984 6421988 6421992 6421996 6422000
CORINE WILBURN 6421984 6421988 6421992 6421996 6422000
CORINE WILBURN 6421984 6421988 6421992 6421996 6422000
CORINE WILBURN 6421984 6421988 6421992 6421996 6422000
CORINE WILBURN 6421984 6421988 6421992 6421996 6422000