replace text c# file

51

replace text c# file -

string text = File.ReadAllText("test.txt");
text = text.Replace("some text", "new value");
File.WriteAllText("test.txt", text);

Comments

Submit
0 Comments