delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/20/23:19:36

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C-style FILE IO problems..
Date: Fri, 20 Dec 1996 19:33:10 -0800
Organization: Alcyone Systems
Lines: 23
Message-ID: <32BB5A76.27EC1FC@alcyone.com>
References: <59enik$foo AT news DOT luth DOT se>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Roland Nilsson wrote:

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

How large?

The only thing that comes to mind offhand:  Are you trying to read binary
data?  If so, are you sure you've opened the file in binary mode?  (If not,
this would likely explain your problems, depending on your definition of
"they just bomb sometimes.")

-- 
                             Erik Max Francis | max AT alcyone DOT com
                              Alcyone Systems | http://www.alcyone.com/max/
                         San Jose, California | 37 20 07 N 121 53 38 W
                                 &tSftDotIotE | R^4: the 4th R is respect
     "You must surely know if man made heaven | Then man made hell"

- Raw text -


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