don't use exceptions in such a manner. 
if(!in_file.is_open()||!out_file.is_open())
{
       cout << e.what() << endl;
       return 1;
}

is enough