www.delorie.com/archives/browse.cgi | search |
Date: | Fri, 3 Feb 95 14:06:48 -0500 |
From: | dj AT stealth DOT ctron DOT com (DJ Delorie) |
To: | brian AT godzilla DOT MicroUnity DOT com |
Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Subject: | Re: fwrite and dos files |
> ofile = fopen("splat.out","w"); ANSI requires that binary files be opened with "wb", not "w", to indicate that they are not text files, which is the default. ANSI states that you may NOT rely on the format of text files to be the same as the format of the data you get from them, and must use the "b" option to ensure that the operating system will not do any text translation. DJ
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |