Table of Contents

Method StringToFile

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

StringToFile(string, string, Encoding?)

Saves string to file. If file with such name already exists, it is deleted before saving the string.

public static void StringToFile(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.