All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy