What kind of vector are you using? And if you're using a C++ string (include <string>), you can try including <string.h> too and pass a C string to the vector using the .c_str() converter. That should work. Try something like this:
The 0 would of course be the index of the string you want.Code:... vector<string> v; v.push_back( file_name ); ifstream file_handle( v[ 0 ].c_str() ) ...


Reply With Quote
