Version: v0.7.1 - Beta.  We welcome contributors & feedback.

File.append

File.append($filePath, $dataListOrString) -> false

Description

Append the given data to the end of a file.

If the file does not already exist, it will be created.

The $filePath is relative to the data/files directory.

If the data is a List, it will be joined by newlines \n.

File.append('file.txt', 'some line')

File.append('file.txt', ['line1', 'line2', 'line3'])

See Also