I have a configuration file where each line is a setting and value combo. I don't know what the value is set to, however I do know the name of the setting, where I need to update the entire line. I've found numerous examples making use of File.ReadAllText.Replace and File.WriteAllText but these are replacing a specific string with another string.
Example Setting Line:
Server.ServerType=official
I need to find the line that contains "Server.ServerType=" and in this example I would replace it with "Server.ServerType=modded".
What would be the most simplistic approach to do this using C#?