Table of Contents

Method EditFile

Namespace
Oscova.Agents.Toolsets
Assembly
Oscova.Agents.dll

EditFile(string, string, string, bool)

Replaces text in a file, requiring a unique match unless all matches are requested.

public string EditFile(string file_path, string old_string, string new_string, bool replace_all = false)

Parameters

file_path string
old_string string
new_string string
replace_all bool

Returns

string