I've created a text file with the numbers from 1-450. After writing code to retrieve and print out the contents in the text file, the compiler only printed out the numbers 124-450. Is there a reason why this is happening?
Consoles generally only retain a limited number of lines of text. If you're printing 450 lines at one time, there is a good probability that you just can't scroll up far enough to see the first lines because they weren't retained by the console. That doesn't have anything to do with your code.
The easiest way would be to redirect the output to a file and inspect the file when the program is done. Alternately, you could interrupt the output temporarily as Fredbill suggests or possibly adjust your console settings so that more lines are retained.