I am trying to open a file in binary to write. But I am getting the message
"could not open the file".
Code:
fstream outCredit( "credit.dat", ios::in | ios::out | ios::binary );
if ( !outCredit )
{
cerr << "File could not be opened." << endl;
exit( 1 );
}
What is the reason for this pblm.
Regards
Manish
Reply


ut | ios::binary );
