Learn R Programming

properties (version 0.0-9)

read.properties: Read a Java Properties File for Use in RSB Applications

Description

Read a Java Properties File for Use in RSB Applications

Usage

read.properties(file, fields = NULL, encoding = "UTF-8")

Arguments

file

properties file, either a character string (path) or a connection

fields

subset of field names, if NULL, all fields are included

encoding

encoding of the properties file to read (default value "UTF-8")

Value

list with key-value pairs

See Also

write.properties for writing properties files

Examples

Run this code
# NOT RUN {
tf <- system.file("testFiles", "test0.properties", package = "properties")
read.properties(tf, fields = c("key2", "key3"))
# }

Run the code above in your browser using DataLab