configurationText

Reads a configuration file into a string.

configurationText
(
const string configFile
)

Parameters

configFile string

Filename of file to read from.

Return Value

Type: auto

The contents of the supplied file.

Throws

FileTypeMismatchException if the configuration file is a directory, a character file or any other non-file type we can't write to.

ConfigurationFileReadFailureException

if the reading and decoding of the configuration file failed.

Examples

string configText = "kameloso.conf".configurationText;

Meta