Learn R Programming

properties (version 0.0-9)

write.properties: 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 "UTF-8")

Value

nothing; the properties are written to file

See Also

read.properties for reading properties files

Examples

Run this code
# NOT RUN {
tf <- tempfile()
write.properties(file = tf,
    properties = list(key1 = "value1", key2 = "value2", key3 = "value3"),
    fields = c("key2", "key3"))
unlink(tf)
# }

Run the code above in your browser using DataLab