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...")
 
(finished sentence)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{mirc title|$lines Identifier}}'''$lines''' returns the total number of lines in the specified text file.
  
 
{{mirc title|$lines Identifier}}'''$lines(filename)''' Returns the total number of lines in the specified text file.
 
  
 
== Synopsis ==
 
== Synopsis ==
Line 9: Line 8:
 
== 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 lines.
  
 
== Properties ==
 
== Properties ==
Line 18: Line 17:
 
<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 ==
 
{{mIRC compatibility|4.5}}
 
{{mIRC compatibility|4.5}}
  
== See Also ==
+
== See also ==
[[Category:MIRC identifiers]]
 
 
* {{mIRC|$read}}
 
* {{mIRC|$read}}
 +
{{mIRC identifier list}}
 +
[[Category:mIRC identifiers|lines]]

Latest revision as of 02:11, 12 March 2018

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


Synopsis[edit]

$lines(filename)

Paramters[edit]

filename - The complete filename you want to know the total number of lines.

Properties[edit]

None

Example[edit]

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

Compatibility[edit]

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[edit]

[Expand]
v · d · e mIRC identifier list