delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/02/19:23:20

Message-ID: <377D3159.2FB4AF41@dallas.crosswinds.net>
From: Wei-shi Tsai <perdita AT dallas DOT crosswinds DOT net>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: ifstream problems
Lines: 27
Date: Fri, 02 Jul 1999 21:30:25 GMT
NNTP-Posting-Host: 209.30.180.72
X-Complaints-To: abuse AT flash DOT net
X-Trace: news.flash.net 930951025 209.30.180.72 (Fri, 02 Jul 1999 16:30:25 CDT)
NNTP-Posting-Date: Fri, 02 Jul 1999 16:30:25 CDT
Organization: FlashNet Communications, http://www.flash.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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.)


-- 
Wei-shi Tsai
Cymbeline on #descent, Kahn, and ICQ(UIN:2801023)
The Lost Material Defender Page:
http://www.crosswinds.net/dallas/~perdita/index.html
MoonieCode(1.8.11):
SM:5+ F:sMe++>Mo+>:vZo<Bl+>:aLu+Ry+:pClR2 D:sMa<:vBe-Wi-> X:a0s|35d++
O:d+:s?:?o?:a--:h--- P:a+:s6:w-:f?:eBrD:hBkm:t-:cAs:y---:r+|

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019