I have a problem.

My program is prompting the user for a file address like this:

// ...
string address;
cout << "Enter file address:\n";
cin >> address;
file.open(address);
// ...

But this is causing me an error. Anybody has any suggestions?

Thanks!