append to file()

This function appends content c to file a, using encoding b.

The return value of the function is c.

Parameters


Parameter

Description

a

Name (and path) of the file. If the file does not exist, it will be created.

b

(optional) The encoding. Default: "8859_1". Note: Use the three dots to select a value.

c

Content to be appended.

Example


We assume that the file does not exist yet and that the two calls happen one after the other.


Parameter a

Parameter b

Parameter c

Result

Content of file

test

./conf/append_test.txt


test

test

test

./conf/append_test.txt


test

testtest