The Full Form of CRLF is Carriage Return, Line Feed.
CR and LF are control characters or bytecode that can be used to mark a line break in a text file.
\r
, 0x0D
in hexadecimal, 13 in decimal) — moves the cursor to the beginning of the line without advancing to the next line.\n
, 0x0A
in hexadecimal, 10 in decimal) — moves the cursor down to the next line without returning to the beginning of the line.A CR immediately followed by a LF (CRLF, \r\n
, or 0x0D0A
) moves the cursor down to the next line and then to the beginning of the line.
Windows editors often still use the combination of both as \r\n
in text files. Unix uses mostly only the \n
.
The separation comes from typewriter times, when you turned the wheel to move the paper to change the line and moved the carriage to restart typing on the beginning of a line. This was two steps.
CRLF
means
Carriage Return, Line Feed
Leave a Reply
You must be logged in to post a comment.