Api/minux.replaceline(): Difference between revisions
Jump to navigation
Jump to search
(Created page with "this function is part of the minux. api and used to replace a line in a file with another value it takes a filename(absolute path), input and output variable. '''usage:''' dev.replaceline(filename, input, output) '''output:''' replaces the line containing "input" with the line containing "output" in filename.") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
'''usage:''' | '''usage:''' | ||
minux.replaceline(filename, input, output) | |||
Line 14: | Line 14: | ||
replaces the line containing "input" with the line containing "output" in filename. | replaces the line containing "input" with the line containing "output" in filename. | ||
outputs true if file found, false if not |
Latest revision as of 04:17, 4 October 2024
this function is part of the minux. api and used to replace a line in a file with another value
it takes a filename(absolute path), input and output variable.
usage:
minux.replaceline(filename, input, output)
output:
replaces the line containing "input" with the line containing "output" in filename.
outputs true if file found, false if not