www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/04/04:01:12

Date: Wed, 4 Nov 1998 10:58:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.981104105820.25255D-100000@is>
MIME-Version: 1.0
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019