powered by
Write a Java Properties File
write.properties(file, properties, fields = NULL, encoding = "UTF-8")
properties file, either a character string (path) or a connection
list with key-value pairs
subset of field names, if NULL, all fields are included
encoding of the properties file to read (default value "UTF-8")
"UTF-8"
nothing; the properties are written to file
read.properties for reading properties files
read.properties
# 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