write.ini: Write list to .ini file

Description Usage Arguments See Also Examples

Description

Write list to .ini file

Usage

1
write.ini(x, filepath, encoding = getOption("encoding"))

Arguments

x

List with structure to be write at .ini file.

filepath

file to write

encoding

Encoding of filepath parameter, will default to system encoding if not specifield

See Also

read.ini

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Create a new temp ini for writing
iniFile <- tempfile(fileext = '.ini')

## Create a new list holding our INI
newini <- list()
newini[[ "Hello World" ]] <- list(Foo = 'Bar')

## Write structure to file
write.ini(newini, iniFile)

## Check file content
## Not run: 
file.show(iniFile)

## End(Not run)

dvdscripter/ini documentation built on May 6, 2019, 9:49 p.m.