I\'m trying to figure out the best way to open an existing file and replace all strings that match a declared string with a new string, save it then close.
Suggestio
Slight improvement on the accepted answer that doesn't require Regex, and which meets the requirements of the question:
File.WriteAllText("Path", File.ReadAllText("Path").Replace("SearchString", "Replacement"));