> how do I check if the file is successfully opened and ready to write ?
Try:
if ( f.good() )
{
// Write...
}
> Hi,
>
[quoted text clipped - 9 lines]
>
> ..ab
Abubakar - 11 Sep 2007 15:40 GMT
Thanks, n what if write() function fails.
..ab
>> how do I check if the file is successfully opened and ready to write ?
>
[quoted text clipped - 17 lines]
>>
>> ..ab
Michael Phillips, Jr. - 11 Sep 2007 15:45 GMT
> Thanks, n what if write() function fails.
Then f.fail() will return true.
> Thanks, n what if write() function fails.
>
[quoted text clipped - 21 lines]
>>>
>>> ..ab