Api/minux.countline(): Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
(Created page with "this function is part of the minux. api and used to count the amount of lines a file has. '''usage:''' local temp = dev.countline(filename) '''output:''' the number of lines the files contains.")
 
No edit summary
Line 1: Line 1:
this function is part of the [[Api/minux|minux. api]] and used to count the amount of lines a file has.
this function is part of the [[Api/minux|minux. api]] and used to count the amount of lines a file has.


'''usage:'''
'''usage:'''


local temp = dev.countline(filename)
local temp = dev.countline(filename)


'''output:'''
'''output:'''


the number of lines the files contains.
the number of lines the files contains.

Revision as of 23:51, 3 October 2024

this function is part of the minux. api and used to count the amount of lines a file has.


usage:

local temp = dev.countline(filename)


output:

the number of lines the files contains.