ServerProvider.loadFileContents

Loads and returns the contents of filename, which is searched in several places This function should only be used by database provider's implementations

class ServerProvider
static
string
loadFileContents
(
string instDir
,
string dataDir
,
string filename
)

Parameters

instDir string

directory where the database provider has been installed

dataDir string

DATA directory to look for ($prefix/share)

filename string

name of the file to load

Return Value

Type: string

a new string containing filename's contents, or null if not found or if an error occurred