How does the fscanf function work?
You have to focus in the double loop you have there: EOF stands for End Of File, so the first loop will continue until the end of the file is found, i.e. until the file pointer reaches the end of the file. Now remember that your file has data like this: Steve Stevenson 2 9 … Read more