From WikiChip
$lines Identifier - mIRC
< mirc‎ | identifiers
Revision as of 09:25, 12 June 2017 by Westor (talk | contribs) (Created page with " {{mirc title|$lines Identifier}}'''$lines(filename)''' Returns the total number of lines in the specified text file. == Synopsis == <source lang="mIRC"> $lines(filename)</s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


$lines(filename) Returns the total number of lines in the specified text file.

Synopsis

$lines(filename)

Paramters

Filename = Will be the given path with the filename that you want to use for.

Properties

None

Example

//echo -a $lines(readme.txt)

It will return the total number of the hole lines that the "readme.txt" file has.

NOTE: If you specify an non text file (for example .exe or .png) the result is not gonna be correct, also if the file doesn't exist it will return 0.

Compatibility

Added: mIRC v4.5
Added on: 30 Jun 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also