|
-
October 10th, 2008, 11:47 AM
#1
[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.
Last edited by Silo1337; October 10th, 2008 at 12:12 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|