Afficher un message
Vieux 08/02/2008, 20h50   #3
rrsettgast@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: strange problem opening ofstream

Hi,
Like 10.
Yes they are all closed.
I do the following commands:
cout<<" output.is_open() = "<<output.is_open()<<endl;
cout<<" output.fail() = "<<output.fail()<<endl;
cout<<" output.bad() = "<<output.bad()<<endl;
cout<<" output.good() = "<<output.good()<<endl;
before and after the output.open( filename , ios::binary | ios:ut |
ios::trunc ); call.
i get:
before open command
output.is_open() = 0
output.fail() = 0
output.bad() = 0
output.good() = 1
after open command
output.is_open() = 0
output.fail() = 1
output.bad() = 0
output.good() = 0

Any way to tell exactly why the open fails?

Thanks again.

On Feb 8, 11:24 am, "Daniel T." <danie...@earthlink.net> wrote:
> How many is "a bunch"? Are you sure they are all getting closed properly?


  Réponse avec citation
 
Page generated in 0,05725 seconds with 9 queries