Different platforms use different end of line characters. If you're programming in something like Perl, this information may just save your butt one day:

  • Mac OS uses carriage return (\r, or 0x0D)
  • DOS/Windows uses a carriage return followed by a line feed (\r\n, or 0x0D0A)
  • UNIX/Linux uses a line feed (\n, or 0x0A)