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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/read.properties.R

Description

Read a Java Properties File for Use in RSB Applications

Usage

1
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

Author(s)

Tobias Verbeke, Daan Seynaeve

See Also

write.properties for writing properties files

Examples

1
2
tf <- system.file("testFiles", "test0.properties", package = "properties")
read.properties(tf, fields = c("key2", "key3"))

Example output

$key2
[1] "value2"

$key3
[1] "value3"

properties documentation built on May 2, 2019, 9:16 a.m.