GetPropertyFile()

edit

Read the properties from a properties file.

Introduced: 7.0.0.108

GetPropertyFile( filePath=string, encoding=string );

Returns: Struct

Argument Description Default
filePath
string, required
edit

Path of the properties initialization file

encoding
string, optional
edit

Encoding for the properties file

UTF-8

Examples

edit
// Define the path to your properties file
path = expandPath("/path/to/your/test.properties");

// Read all properties from the file using UTF-8 encoding properties = getPropertyFile(path, "UTF-8");
// Output all properties as a struct writeDump(properties);

See also