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

ifstream bullshit

Name: Anonymous 2009-10-26 22:55

Why does c++ have to be so finnicky about strings? I've looked everywhere but found nothing on how to get ifstream to open a file from user input. Can you guys help me? I want this code to work but it just isn't happening. How can I make it work?

string input;
cin >> input
  ifstream myfile;
  myfile.open (input);

Name: Anonymous 2009-10-27 6:55

>>9
Please don't make C++ slightly more useable

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