From: "sl" Newsgroups: comp.os.msdos.djgpp Subject: Re: ios::binary ignored by GCC - HELP! Date: Sat, 07 Nov 1998 01:59:54 -0500 (EST) Organization: Posted via Supernews, http://www.supernews.com - Discussions start here! Lines: 14 Message-ID: References: <7208uh$epn$1 AT news DOT luth DOT se> NNTP-Posting-Host: 205.205.70.101 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: 910421346 ZCZSLWF4G4665CDCDC usenet77.supernews.com X-Complaints-To: newsabuse AT supernews DOT com X-Newsreader: PMINews 2.00.1205 For OS/2 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 7 Nov 1998 01:49:05 GMT, Martin Str|mberg wrote: >: does one go about fixing this? > >Try "fprintf(f, "%c", 7);" or the equivalent in C++ (I don't know >C++). But then what happens when/if I try to write "int" to the file? All it really requires is two bytes, but GCC writes it out as its text counterpart for some reason.. Gili