C# search textfile after specific search term and change the result in the output : I have a textfile in the format

> Name Harry.Potter

> Number 123.123234

> Name Lisa.Simpson

> Number +44.123234

If the line starts with the word Name I want the dot (.) to be exchanged to a blankspace ( ).

How can I change only the dots in the lines starting with Name and NOT Number?

I use System.IO.File.WriteAllLines and System.IO.File.ReadAllLines in other parts of the code so it would be nice from my part if this function could be done in similar way.

Thanks in advance.
