From WikiChip
Difference between revisions of "mirc/identifiers/$lines"
< mirc‎ | identifiers

(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...")
 
Line 1: Line 1:
  
  
{{mirc title|$lines Identifier}}'''$lines(filename)''' Returns the total number of lines in the specified text file.
+
{{mirc title|$lines Identifier}}'''$lines''' Returns the total number of lines in the specified text file.
  
 
== Synopsis ==
 
== Synopsis ==
Line 9: Line 9:
 
== Paramters ==
 
== Paramters ==
  
'''Filename''' = ''Will be the given path with the filename that you want to use for.''
+
'''Filename''' = ''The complete filename you want to know the total number of.''
  
 
== Properties ==
 
== Properties ==
Line 18: Line 18:
 
<source lang="mIRC">//echo -a $lines(readme.txt)</source>
 
<source lang="mIRC">//echo -a $lines(readme.txt)</source>
  
It will return the total number of the hole lines that the "'''readme.txt'''" file has.
+
will return the total number of lines in the relative filename readme.txt.
 
 
'''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 ==
 
== Compatibility ==

Revision as of 14:10, 12 June 2017


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

Synopsis

$lines(filename)

Paramters

Filename = The complete filename you want to know the total number of.

Properties

None

Example

//echo -a $lines(readme.txt)
will return the total number of lines in the relative filename readme.txt.

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