Answers for "find and replace word in file c#"

C#
1

replace text c# file

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

Code answers related to "find and replace word in file c#"

C# Answers by Framework

Browse Popular Code Answers by Language