Reads a Java properties file and returns all of its key-value pairs as a struct.
getPropertyFile(filepath [, encoding])
→ returns struct
utf-8path = getTempDirectory() & "app.properties";
fileWrite(path, "a=1#chr(10)#b=hello");
writeOutput(serializeJSON(getPropertyFile(path)));
Expected Result: {"a":"1","b":"hello"}
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.