Lucee Function Reference

setpropertystring()

Sets the value of a property entry in a properties file.

Example

setpropertystring(string filePath,string key,string value,[string encoding]):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
filePath string  Yes   Path of the properties initialization file  
key string  Yes   Name of the key to set  
value string  Yes   Value to which to set the property  
encoding string  No UTF-8 Encoding for the properties file, default UTF-8