I'm trying to learn the basics of C++. I've been working on a project that is suppose to prompt the user to either enter numbers into an array and count them, or the user inputs a file. I've tried input the file as a string but everytime i try to run the program my default error message runs saying there is no file (Yes the file is stored in the same directory as my program).
please forgive me, if anyone was wondering what was happening with this program the ";" shouldn't be after in_stream.fail()); it should be in_stream.fail()). Such a small thing eh?