Method StringToFileIfChanged
StringToFileIfChanged(string, string, Encoding?)
Saves string to the specified file only if its contents is different from the saved string.
public static void StringToFileIfChanged(string path, string s, Encoding? encoding = null)