Line (text file)

In computing, a line is a unit of organization for text files.

Uses your system voice; voice and rate in settings.

≈ 2 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

In computing, a line is a unit of organization for text files. A line consists of a sequence of zero or more characters, usually displayed within a single horizontal sequence. The term comes directly from physical printing, where a line of text is a horizontal row of characters.

Depending on the file system or operating system being used the number of characters on a line may either be predetermined or fixed, or the length may vary from line to line. Fixed-length lines are sometimes called records. With variable-length lines, the end of each line is usually indicated by the presence of one or more special end-of-line characters.

These include line feed, carriage return, or combinations thereof. A blank line usually refers to a line containing zero characters (not counting any end-of-line characters); though it may also refer to any line that does not contain any visible characters (consisting only of whitespace).

Some tools that operate on text files (e.g., editors) provide a mechanism to reference lines by their line number.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1351233062 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot enwiki-001351233062 · captured 2026-04-26 · ledger · version history

Cite this page as: encyclopegia.org, “Line (text file)”, snapshot enwiki-001351233062. https://encyclopegia.org/a/line-text-file

Sources cited in this revision

1 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.