Is carriage return the same as New Line?

Is carriage return the same as New Line?
Answer
n is the newline character, while r is the carriage return. They differ in what uses them. Windows uses rn to signify the enter key was pressed, while Linux and Unix use n to signify that the enter key was pressed.
 

Tìm kiếm

Back
Top