Api/minux.removestring(): Difference between revisions
Jump to navigation
Jump to search
(Created page with "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:''' dev.removestring(filename, string) '''output:''' removes the line containing string from filename") |
No edit summary |
||
Line 16: | Line 16: | ||
removes the line containing string from filename | removes the line containing string from filename | ||
returns false if file not found, true if it was |
Revision as of 00:58, 4 October 2024
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:
dev.removestring(filename, string)
output:
removes the line containing string from filename
returns false if file not found, true if it was