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 |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
'''usage:''' | '''usage:''' | ||
minux.removestring(filename, string) | |||
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 |
Latest revision as of 04:16, 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:
minux.removestring(filename, string)
output:
removes the line containing string from filename
returns false if file not found, true if it was