NewlineIn computing, a newline is a special character or sequence of characters indicating the end of a line. The name comes from the fact that the next character will appear on a new line — that is, on the next line below the text immediately preceding the newline. Depending on the style used, "single-spaced" text may contain one newline between adjacent paragraphs, in which case the second paragraph is usually indented, or two newlines between paragraphs with no indenting (the default in web browsers). Other variations exist.
MethodsSoftware applications and operating systems usually represent the newline with one or two control characters. Most systems use either When a program stores text in a file using ASCII or an ASCII-compatible 8-bit encoding, as is typically the default, these characters are represented with their single ASCII bytes Some mainframe operating systems still use EBCDIC, an IBM-proprietary 8-bit encoding that is completely incompatible with ASCII. In EBCDIC, the "Next Line" ( On rare occasions, newlines are also called line anchors or line breakers, reflecting differing views of the purpose of newlines; a newline may be considered a line separator or a line terminator. This is similar to the question of whether semicolons separate or terminate statements in the syntax of programming languages. Although most of the time the difference in interpretation is inconsequential, a newline at the end of a file can be troublesome. Most programs do not consider such a newline to introduce a new line after that character, but some do. HistoryASCII was developed simultaneously by the ISO and the ASA, the predecessor organization to ANSI. During the period 1963-1968, the ISO draft standards supported the use of either The sequence Variations in conventionsThe following list demonstrates the variations in the end-of-line conventions among operating systems: NELCR+LF
CR
LF
Unclassified
C newlineIn the C standard I/O library, files can be accessed in either text or binary mode. When performing input or output in text mode on a system where lines are not terminated by the C newline character (
de:Zeilenumbruch Categories: Computer terminology |
|
This article is licensed under the GNU Free Documentation License. It uses material from Wikipedia article. Browse Wikipedia for more information. |