Mail Archives: djgpp/1999/07/03/11:31:25
In article <377D3159 DOT 2FB4AF41 AT dallas DOT crosswinds DOT net>, perdita AT dallas DOT crosswinds DOT net wrote:
>I am already at the end of my wits.
>
>I have been attempting to write a function to open an AVI file.
>However, I have had this particular aggravation which is stopping me.
>
>I open the file by using
>
>ifstream("mmm.avi",ios::binary);
>
>However, I cannot even read anything! Anything I test for EOF (using
>ifstream::eof()) it reports that the EOF is at the beginning of the
>file, and the location of the pointer at the stream is zero!
>
>What is even more strange is that if I open the file as text, it works
>perfectly.
>
>Any suggestions? (I can't post my code here because it is in a mess.)
>
>
You will have to change
ifstream ("mmm.avi", ios::binary);
to
ifstream your_name_for_this_object ("mmm.avi", ios::binary | ios::in);
If you need any other flags just add them with another or (|).
--
Manni
- Raw text -