[Solved] File output name?
I'm trying to make a program that will output a .DVD file with some data in it with a name the user inputs. However, I can't figure out how to have the user input some data into a string and then use that when creating the file. Here's how I have my function setup:
Code:
string filename;
int layerbreak = 1913760;
cout << "Please enter the name of the file: ";
(cin >> filename).get();
ofstream dvdfile("ASDF.DVD");
if (dvdfile.is_open()){
I have successfully made the .DVD file with the "ASDF" name, or whatever I put in the quotes... I just want to use the string stored in "filename" as the name of the .DVD file. Does anyone know how to do this? Thanks a lot in advance.