Mail Archives: djgpp/1999/02/07/11:22:21
On Sun, 07 Feb 1999 03:01:06 -0500, Martin Ambuhl
<mambuhl AT earthlink DOT net> wrote:
>Collonello wrote:
>>
>> Okay, I've a problem.
>> Somebody tell me what's wrong in this program:
>
>> ofstream fout("foo.dat", ios::binary);
> ofstream fout("foo.dat", ios::out | ios::binary);
>
>
>> ifstream fin("foo.dat", ios::binary);
> ifstream fin("foo.dat", ios::in | ios::binary);
>I cannot tell you for sure (so this may be wrong), but it seems that if
>you use the mode argument at all, you must specify it completely.
Yup. It worked. Thanks. To you and the other Martin. :)
Funny but I actually took that part of the source code from Jesse
Liberty's book, Teach yourself C++ programming in 21 days.
-Tom
- Raw text -