how do i get a user input string for file input/upload to work?
int main()
{
string P = "";
cout << "Input Directery Example: \" C:\\Users\\mugen\\Desktop\\data.txt \" " << endl;
getline(cin, P);
ofstream fileOut(P); //does not seem to read string "P" how do i get it to work
system("pause");
}
i don't have to overload "ofstream.open()" do it if so what is the definition for it...i haven't learned more then operation overload yet!!!