Table of Contents

Method StringFromFile

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

StringFromFile(string, Encoding?)

Reads string from the file using the specified encoding.

public static string StringFromFile(string path, Encoding? encoding = null)

Parameters

path string

Path to file from which string will be loaded.

encoding Encoding

Stream encoding. Optional. If not specified, UTF8 is used.

Returns

string