reopen

fun reopen(file: PathLike)(source)

Reopen the file in place, useful for log rotation.

Parameters

file

A path to a file to be written to (mode controlled by the append option).