www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/05/12/22:53:54

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Fw: fwrite/fread problem
12 May 1998 22:53:54 -0700 :
Message-ID: <9805121936.AA05674.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <002501bd7d24$344650c0$ce0ca2d1 AT english>
To: "Mitch English" <i166224 AT thegrid DOT net>
Cc: gnu-win32 AT cygnus DOT com

Mitch,

You need to specify the binary flag to get things to work correctly.
ReaderBinary should be "rb", WriterBinary "wb+" etc.

OpenNT quite possibly forces all I/O to be binary, so it works correctly.
I know UWIN does it that way.

Mumit

ps: It whould be nice if you could keep your email free of the HTML crud
which is unnecessary and quite annoying. 
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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