Api/minux.replaceline()

From Minux Wiki
Revision as of 23:56, 3 October 2024 by Shorun (talk | contribs) (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.")
(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 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.