Life is a journey

Who Dares Wins
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Line termination: Windows versus UNIX versus Macintosh

Posted on 2012-05-30 17:53  zhaobin  阅读(106)  评论(0编辑  收藏  举报

0d: carriage return  \r

0a: line feed            \n

WINDOWS:

preceding text -> 0d 0a -> succeeding text

UNIX, Mac OSX:

preceding text -> 0a -> succeeding text

MAC (OS-9 and earlier):

preceding text -> 0d -> succeeding text