Please give detail about the terms
Carriage Returns & Linefeeds
Hello @ANCODE,
-
‘\r’ is a carriage return character; move the cursor to the begin of the line.
Carriage return means to return to the beginning of the current line without advancing downward. The name comes from a printer’s carriage, as monitors were rare when the name was coined. This is commonly escaped as “\r”, abbreviated CR, and has ASCII value 13 or 0x0D. -
“\n” is the linefeed character. It means end the present line and go to a new line for anyone who is reading it.
Linefeed means to advance downward to the next line; however, it has been repurposed and renamed. Used as “newline”, it terminates lines (commonly confused with separating lines). This is commonly escaped as “\n”, abbreviated LF or NL, and has ASCII value 10 or 0x0A. CRLF (but not CRNL) is used for the pair “\r\n”.
Hope, this would help.
Give a like, if you are satisfied.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.