Code:
#include <fstream>
#include <string>

// ...

string address = "";

// ...

int main()
{
     ifstream file;

     cout << "enter file address:\n";
     cin >> address;

     file.open(address);

     //...
}
this thing gives me an error...