delorie.com/archives/browse.cgi | search |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: open |
Date: | Tue, 10 Apr 2001 22:21:43 +0300 |
Lines: | 9 |
Message-ID: | <3AD35D47.B3040B89@is.elta.co.il> |
References: | <20010410122051 DOT C8540 AT kendall DOT sfbr DOT org> |
NNTP-Posting-Host: | diup-218-43.inter.net.il (213.8.218.43) |
Mime-Version: | 1.0 |
X-Trace: | fu-berlin.de 986930591 7352568 213.8.218.43 (16 [61365]) |
X-Mailer: | Mozilla 4.7 [en] (Win98; I) |
X-Accept-Language: | en |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
JT Williams wrote: > > The effect I want, however, is to strip ^M on reading and _do not_ > add them back when writing (i.e., always write text files with unix > NL line endings). > > Should I open in text mode and then write in binary mode? Yes.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |