Api/minux.removestring()

From Minux Wiki
Jump to navigation Jump to search

his function is part of the minux. api and used to remove a string from a file

it takes as input a filename (absolute path) and a string to look for

the string has to be an exact copy of the full line.


usage:

minux.removestring(filename, string)


output:

removes the line containing string from filename

returns false if file not found, true if it was