I was following a tutorial online and when I ran the program, it showed differently, as if it was reading from my code lines instead of the numbers.txt file. The code does compile.
I'm thinking the problem might be because he is using Visual Studio and I'm compiling with Cygwin