www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/20/15:04:11

From: roland DOT nilsson AT communique DOT se (Roland Nilsson)
Newsgroups: comp.os.msdos.djgpp
Subject: C-style FILE IO problems..
Date: 20 Dec 1996 18:57:24 GMT
Organization: -+- Private -+-
Lines: 23
Message-ID: <59enik$foo@news.luth.se>
NNTP-Posting-Host: x57.communique.se
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

HI comp.os.msdos.djgpp!!

I've been using djgpp for a few months, and has experienced some
problems during heavy usage of C-style FILE io. It seems fread()
and fwrite() cannot handle reads of any size, they fail in certain
situations. I have not been able to find any logical pattern, they
just bomb sometimes. Are there any restrictions on FILE usage which
could explain this behaviour (maximum transfer sizes, reads at odd
positions, etc) ???

Btw, I've tried iostreams too, but somehow I haven't managed to
get ios into raw mode. (Yes, I've tried ios::raw - doesn't work)

 Any help would be really appreciated. Please CC me, I don't read
 this newsgroup that regularly.

------------------------------------------------------- - -  -
   Roland Nilsson, AssiDomaen Electronics Dept. DBA
                    Pitea, SWEDEN
        --/         member of the       \--
       --(  Avante OS Development Group  )--
        --\     (project coordinator)   /--

- Raw text -


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