clearFileAndWriteText

fun File.clearFileAndWriteText(text: String, charset: Charset = Charsets.UTF_8)