Answers for "update a file where there is a keyword c#"

C#
0

update a file where there is a keyword c#

string text = File.ReadAllText("test.txt");
text = text.Replace("some text", "new value");
File.WriteAllText("test.txt", text);
Posted by: Guest on March-18-2021

Code answers related to "update a file where there is a keyword c#"

C# Answers by Framework

Browse Popular Code Answers by Language