write.properties {properties} | R Documentation |
Write a Java Properties File
Description
Write a Java Properties File
Usage
write.properties(file, properties, fields = NULL, encoding = "UTF-8")
Arguments
file |
properties file, either a character string (path) or a connection |
properties |
list with key-value pairs |
fields |
subset of field names, if NULL, all fields are included |
encoding |
encoding of the properties file to read (default value |
Value
nothing; the properties are written to file
Author(s)
Daan Seynaeve
See Also
read.properties
for reading properties files
Examples
tf <- tempfile()
write.properties(file = tf,
properties = list(key1 = "value1", key2 = "value2", key3 = "value3"),
fields = c("key2", "key3"))
unlink(tf)
[Package properties version 0.0-9 Index]