Write list to .ini file

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

Examples

## 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
if (FALSE) { # \dontrun{
file.show(iniFile)
} # }