David Barry wrote:What do you think my third problem is? I now have this code that compiles, but does not print out my doubles from the text file.
Your 3rd problem is that your index is not moving. To take someone else's example, you are smashing each new egg you pick up from inFile, into the same spot, every time through the loop. What happens to the metaphorical eggs, is what happens to your previous numbers.
you need to be incrementing the value of index, each time through the loop.
Finally, you might encounter a fourth problem (ponder what happens when there are more than 14 values in the file you are reading)