Date: Fri, 3 Jan 2003 16:08:12 -0500 Message-Id: <200301032108.h03L8CD06116@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (Edward DOT Younskevicius AT honeywell DOT com) Subject: Re: Possible bug with fgets() and fputs(), ANSI C, in DJGPP References: Reply-To: djgpp AT delorie DOT com Did you do a fsetpos between the write and the next get? You need to do a seek of some sort *every* time you switch between reading and writing, or between writing and reading.