newlineterminated
Newlineterminated is a term used to describe data items, typically lines of text, whose end is signaled by a newline character instead of a null terminator. In this scheme, the length of the item can be determined by locating the newline. The newline may be LF (line feed) or CRLF (carriage return followed by line feed); some contexts use only LF. The content of the line is considered to end immediately before the newline, though some applications include the newline as part of the line when processing.
Newlineterminated lines are common in text files and line-oriented protocols, such as many email and HTTP header
Advantages of newline termination include clear, predictable line boundaries and straightforward streaming or incremental parsing. It
See also: newline, line ending, null-terminated, line-oriented protocol.