load_file_contents


Description:

public static string load_file_contents (string inst_dir, string data_dir, string filename)

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

Parameters:

inst_dir

directory where the database provider has been installed

data_dir

DATA directory to look for ($prefix/share)

filename

name of the file to load

Returns:

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