Hi, I have a question with ofstream, is there anyway to ask the user for a file name, then create the file, and write to it?
string file; cout << "Enter filename:"; getline(cin, file); ofstream ofile; ofile.open(file); ofile << (stuff....); ofile.close;
...except that doesn't work properly.:S
Thanks for any help.