hi I have a code, the part which is troubling goes like this ************************************************** ************** #include #include #include using std::ifstream; using std::ofstream; .... ifstream ifs(f_name.c_str()); if( ifs.is_open() ) cout << "is open" << endl; else cout << "closed" << endl; .... when run into the debugger "gdb" it shows "closed", however it prints "p f_name" fine and if ...