Table of Contents

Method StringToFileIfChanged

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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)

Parameters

path string

Path to file where string will be saved.

s string

String to save.

encoding Encoding

Encoding to use for saving the string. Optional. If not specified, UTF8 is used.