Thanks for your help with this. The best way that I can describe what this program is supposed to do is similar to the old "magic 8" balls, where you can ask a question that doesn't really matter and receive one of the pre-prepared messages. The only part of this that is still not working correctly is that what prompted for "would you like to ask another question", it does not allow for another question to be input and simply displays the second "answer", and the thrid, and so on.
The process should be input question, displays "answer", prompts for another question, if yes-displays another answer, if no-terminates program. Thanks again.
The answerfile.txt file looks like:
using namespace std;
cout<<"Please enter a question:"<<endl;
cout<<"Would you like to ask another question, y or no:"<<endl;
Test answer one.
Test answer two.
Test answer three.
Test answer four.
Test answer five.