Date: Wed, 4 Nov 1998 10:58:44 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: File sharing NT--UNIX EOL In-Reply-To: <363F0CE3.1C5D0E87@monsterbymistake.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Tue, 3 Nov 1998, Agent Drek wrote: > Our problem is when one of the NT boxes makes an entry in the data base > it puts a bunch of ^M 's for EOL (end of line) Open the output stream in binary mode, if you don't want the default conversion of \n to the CR-LF pair. Please note that binary mode is not always appropriate for reading/writing text files, because some DOS/Windows-based editors and browsers get confused by text files where lines don't end with CR-LF. Since it is not clear from your message whether your data-base files are text or binary, I thought I'd mention that.