So I' am trying to read from a file and the end of this code, but nothing is really coming up. I have pretty muh stumped myself and im pretty much second guessomg everything. Can anyone point me in the right direction.
ifstream is for when you want to read from a file.
The problem is this:
1 2
ifstream myfile ("input.txt"); //create new ifstream, open file input.txt
myfile.open ("input.txt"); //open file input.txt again - I am pretty sure that sets myfile in fail state