Line (text file)

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

The term comes directly from physical printing, where a line of text is a horizontal row of characters.

Fixed-length lines are sometimes called records.

These include line feed, carriage return, or combinations thereof.

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