Mail Archives: djgpp/1998/11/04/04:01:12
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 -