Answers for "c# replace line in text file"

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
0

c# string replace comma with newline

string res = res.Replace(',', 'n');
Posted by: Guest on May-19-2020

Code answers related to "c# replace line in text file"

C# Answers by Framework

Browse Popular Code Answers by Language