did you print out on the screen the string that you entered so that you can see what string the program is trying to use? The ifstream.open() method does not make errors -- the error is in your program, not ifstream. It would help if you posted the code you are using. If you don't want to do that then there isn't much anyone can do for you.