I am trying to get the program to compare the contents of the text file to the string input by the user. I get "Not recognized" every time.
Please help, this is for a bigger project due soon.
I know that this is most likely the worst code you'll see in a while but I'm learning :S
Have you run it through a debugger and checked you're getting suitable values for 'contents'? If you don't have a debugger, simple cout statements to see what you're comparing will help.
I would think your problem is going to be that you're not really reading the content of the "Testing.txt" file (it's either missing, or in a different location), or that you're getting LF characters at the end that you're not allowing for.