Show/Hide Toolbars

Take Command / TCC Help v. 22

Navigation: TCC > Commands > VIEW > The File View

File Attributes / Line Lengths

Scroll Prev Top Next More

 

If the File Attributes command is selected in text mode, the dialog box that displays the file attributes will contain an extra 4 lines of file details:

 

Longest Line

Displays the length (and number) of the longest line in the file.

 

Shortest Line

Displays the length (and number) of the shortest line in the file -  including empty lines. That is, if the file contains an empty line, this length will be zero.

 

Shortest non-empty

Displays the length (and number) of the shortest non-empty line in the file. That is, this length will never be zero

 

Line Terminator

Displays the character (or character pair) used by the file to delimit lines. Depending on the origin of the file, the character(s) used to terminate lines are usually one of:

 

CR

The terminator is a single carriage return character (hex 0D). This terminator is uncommon.

LF

The terminator is a single line feed character (hex 0A). This is the standard terminator used on Unix systems.

CR/LF

A carriage return followed by a line feed is used to terminate lines. This is the standard terminator used on PC based systems.

LF/CR

As above, but the line feed is placed before the carriage return. This is very uncommon.

CR/CR

Two carriage returns are used to terminate lines. This is also very uncommon.

 

 

Notes

 

This extra information is not displayed if the file is being viewed in hex mode, or if the File Attributes command has been selected from the Directory View.

 

If multiple lines share the same length, only the first line in the file with that length is displayed.

 

If a file chunk is being viewed, the line length information only applies to the lines in that chunk, and not the entire file.

 

The number of lines in the entire file (together with the total number of words) may be displayed by selecting Word/Line Count from the Tools menu.