well i still have a problem (dont get why it will compile perfectly)
but I thought i should start up my old thread again instead of making a new one so you can see previous problems.
Ifstream b_file will return the right info
but when i change all my code to use c_file it doesntCode:ifstream b_file ( "input1.txt" );
and to debug i put this in thereCode:ifstream c_file; string num = "1"; string filename = "input"; //skip a few lines here to this //while loop starts string filename = "input"; // filename += num + ".txt"; c_file.open( filename.c_str() );
and it returns input1.txtCode:cout<<filename;
I need c_file to increment so it has to work but i cant get it to work without incrementing
and by the way i dont need help with the incrementing i now have
a working code for incrementing(that I'm not using yet)
I can show you the whole code but its 422 lines of probably overly complicated junk