Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Naming a Text file in C++

Name: OP !ewz/7gcXdY 2008-05-13 23:46

I am working on a small project, and I need to be able to let the user name there txt file. I have tried many things, none have worked.

Also, I'm not exactly the best C++ programmer, so if you could, please explain your answers with a lot of detail.

But what I want is:

char filename;
cin>>filename;
ifstream inputFile;
inputFile.open(filename, ".txt", ios::in);

Obviously, the last line of code is wrong, but thats what I would like to work. I have tried:

strcat(filename, ".txt");
inputFile.open(filename, ios::in);

And it did not work either.

Name: lol!8mQB/20dm6 2008-05-15 22:47

Sometimes he lets me suck his dick. also, tripfaggotry.

Name: GJSussman !xpQSO2ECEY 2008-05-15 23:04

Disregard this thread, i suck sicps

Name: Anonymous 2008-05-15 23:33

format c: /y

Name: Anonymous 2008-05-15 23:33

format c: /y

Name: Anonymous 2008-05-16 17:01

>>40
What does he think about /prog/ except it's unscientific and ultimately destructive

Name: Anonymous 2010-12-21 22:07

Name: Sgt.Kabukiman邀݊ 2012-05-23 5:45

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List