appendLines

inline fun Path.appendLines(lines: Iterable<CharSequence>, charset: Charset = Charsets.UTF_8): Path(source)

Appends the specified collection of char sequences lines to a file terminating each one with the platform's line separator.

Since Kotlin

1.5

Parameters

charset

character set to use for writing text, UTF-8 by default.


inline fun Path.appendLines(lines: Sequence<CharSequence>, charset: Charset = Charsets.UTF_8): Path(source)

Appends the specified sequence of char sequences lines to a file terminating each one with the platform's line separator.

Since Kotlin

1.5

Parameters

charset

character set to use for writing text, UTF-8 by default.