delorie.com/archives/browse.cgi | search |
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 <dj AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
In-reply-to: | <c29.f754a8b.33203d1b@aol.com> (Sterten@aol.com) |
Subject: | Re: line feed |
References: | <c29 DOT f754a8b DOT 33203d1b AT aol DOT com> |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |