jvmMain.com.zegreatrob.tools.cli.ReadFromFile.jvm.kt Maven / Gradle / Ivy
The newest version!
package com.zegreatrob.tools.cli
import java.io.File
actual fun readFromFile(fileName: String): String? {
val file = File(fileName)
return if (file.isFile) {
file.readText(Charsets.UTF_8)
} else {
null
}
}