Are you absolutely sure the file opens correctly? You need to test the return value of the file open to make sure it's really open.
Can you guarantee that there are exactly 8 values in the file? What if there are only 7? Or 10? You should probably loop, reading 1 number at a time while watching for EOF, and adding the numbers to an array instead of individual values.