Showing posts with label other. Show all posts
Showing posts with label other. Show all posts

Difference between \r\n, \r, and \n

 Difference between \r\n, \r, and \n

  • \r = CR (Carriage Return) → Used as a new line character in Mac OS before X
  • \n = LF (Line Feed) → Used as a new line character in Unix/Mac OS X
  • \r\n = CR + LF → Used as a new line character in Windows