Anyone have any idea why this is looping in an error message. I am inputting the entire file name when I run the program and it just keeps falling into my "if(!inputfile)" statement. Let me know if there is anything I'm just not seeing.
Anyone have any idea why this is looping in an error message. I am inputting the entire file name when I run the program and it just keeps falling into my "if(!inputfile)" statement.
The obvious reason would be that it isn't able to open the file. You don't clear the error state when you've determined there is an error state, so subsequent iterations of that loop are not going to change anything.
Is the file you're attempting to open in the same directory that "exp_output.dat" is?