Api/minux.findline(): 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 see if a specific string is present in a file '''usage:''' local temp = findline(filename,searchstring) '''output:''' if "searchstring" is found in the file, outputs true otherwise outputs false")
 
No edit summary
 
Line 5: Line 5:
'''usage:'''
'''usage:'''


local temp = findline(filename,searchstring)
local temp = minux.findline(filename,searchstring)





Latest revision as of 04:15, 4 October 2024

this function is part of the minux. api and used to see if a specific string is present in a file


usage:

local temp = minux.findline(filename,searchstring)


output:

if "searchstring" is found in the file, outputs true

otherwise outputs false