so i am creating a program where you enter some info and it creates a document with the info on it BUT i was wondering if anyone could tell me how to save the file in a location i want here is the code:
string filename;
cout << "Where do you want to save your file? ";
cin >> filename;
myfile.open (filename.c_str());
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/