Ok, This is driving me nuts, and searching google just leads me to dead ends so last resort to ask. I am try to create a file save system, but where the user can specify the name of the file. is this possible using ofstream? this wont work but an example of what I am trying to do
So is there a way to do something like that?Code:#include <iostream> #include <fstream> using namespace std; int main() { string save = "data"; ofstream out ( + data +".txt" ); cin.get(); }
Thank you SO much