Article View: comp.lang.java.api
Article #11Re: Strange I/O behavior
From: Ron Webster
Date: Fri, 08 Dec 2000 01:24
Date: Fri, 08 Dec 2000 01:24
14 lines
1862 bytes
1862 bytes
Wait a minute... MWRon wrote: > > It is because Macs use a different line ending than UNIX does. the 0xA > and 0xD are turned around. > I thought that Macs use 0x0d line termination, UNIX uses 0x0a line termination, and DOS uses 0x0d 0x0a line termination, so any code that works under all platforms has to hunt for both CR and LF. Many programs have been burned by that, including Netscape, early PC versions of which couldn't read the the bookmark file created on the Mac version until the LFs had been added.
Technical Details
Message-ID:
<3A303861.F2CF902C@optonline.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!howland.erols.net!cyclone2.usenetserver.com!news-out.usenetserver.com!news01.optonline.net!news02.optonline.net.POSTED!not-for-mailReferences:
<mtobin-99A222.22175206122000@news.earthlink.net> <mwron-0712001211280001@c243286-a.bcreek1.mi.home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,139b3b33219ebf5 X-Google-Attributes: gid10bcce,public X-Google-Thread: fecd1,139b3b33219ebf5 X-Google-Attributes: gidfecd1,public X-Google-Thread: f635e,139b3b33219ebf5 X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2000-12-07 17:24:47 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!howland.erols.net!cyclone2.usenetserver.com!news-out.usenetserver.com!news01.optonline.net!news02.optonline.net.POSTED!not-for-mail Message-ID: <3A303861.F2CF902C@optonline.net> From: Ron Webster <ronw@optonline.net> Reply-To: ronw@optonline.net X-Mailer: Mozilla 4.76 (Macintosh; U; PPC) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.java.api,comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: Re: Strange I/O behavior References: <mtobin-99A222.22175206122000@news.earthlink.net> <mwron-0712001211280001@c243286-a.bcreek1.mi.home.com> Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Content-Transfer-Encoding: 7bit Lines: 15 Date: Fri, 08 Dec 2000 01:24:45 GMT NNTP-Posting-Host: 24.188.225.14 X-Trace: news02.optonline.net 976238685 24.188.225.14 (Thu, 07 Dec 2000 20:24:45 EST) NNTP-Posting-Date: Thu, 07 Dec 2000 20:24:45 EST Organization: Optimum Online