Hi, I am not seeing any output to monitor when I try to read from file. The file contents is commented at the bottom of the code so its in one place.
Obviously its separate file when I am compiling through terminal on Ubuntu.
It must be something really stupid that I am overseeing.
I am trying to only read the file contents after all the error checks that are in place.
But wouldn't that never execute since the file is clearly not empty? Upon the correct file name input and all those checks would fail, it should execute the else statement only. Or am I missing a simple logistical error here.
EDIT: I commented out that check, and by golly it read the file. Now it would be nice to get an explanation on why that is happening. Hmm