• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: carriage return & line feeds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: carriage return & line feeds


  • Subject: Re: carriage return & line feeds
  • From: Paul McCann <email@hidden>
  • Date: Fri, 08 Jun 2001 18:40:51 +0930

Chris Nebel wrote:

>Mac OS: ASCII character 13 (aka "\r", aka carriage return)
>Unix: ASCII character 10 (aka "\n" to Perl and C users, aka line feed)
>Windows: ASCII character 13 & ASCII character 10 (aka "\r\n", aka crlf)

Hey, you leave Perl out of this!

(Forgive me if I'm misreading your implication in the above, but just to try
and clarify things a little: "\n" is platform *dependent* in Perl, and
adjusts itself nicely when reading/writing files on mac/unix/windows. Very
helpful for writing platform *independent* scripts involving file I/O. "\n"
is ascii character 10 in Perl only on unix platforms. So each of your three
lines should contain an entry something like:)

('aka "\n" to Perl users on this platform')

Cheers,
Paul


  • Prev by Date: Re: Creating file from PICT Resource
  • Next by Date: Folder Actions
  • Previous by thread: Re: carriage return & line feeds
  • Next by thread: Re: carriage return & line feeds
  • Index(es):
    • Date
    • Thread