Api/minux.removeline()

From Minux Wiki
Revision as of 23:54, 3 October 2024 by Shorun (talk | contribs) (Created page with "this function is part of the minux. api and used to remove a specific line from a file it takes a filename (absolute path) and line number as input and then removes that line. '''usage:''' dev.removeline(filename, linenumber) '''output:''' removes the number linenumber from the file specified, returns false if file is not found, true if it was.")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

this function is part of the minux. api and used to remove a specific line from a file

it takes a filename (absolute path) and line number as input and then removes that line.


usage:

dev.removeline(filename, linenumber)


output:

removes the number linenumber from the file specified,

returns false if file is not found, true if it was.