+ 2
What is \r ?
6 Réponses
+ 6
It's like \n (newline) but for different platforms (dunno details...)
+ 5
carriage return.
+ 4
\r will take you to the initial position of the current line.
whereas \n will work with \r + newline.
+ 3
but what it does ?
+ 3
OK, thanks.
+ 3
\r is used for starting a new line on Mac. \n is used instead on linux. Both are used together (\r\n) on windows.