X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Wed, 7 Mar 2007 11:42:18 -0500 Message-Id: <200703071642.l27GgIsO013341@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (Sterten@aol.com) Subject: Re: line feed References: Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On DOS/Windows platforms, files are opened in text mode by default, and line feeds are converted to DOS style line endings. If you want binary mode, use setmode() to change it, or open files with "wb" or O_BINARY.