Kotlin Read InputStream to String

April 6, 2019
val content = inputStream.use { input ->
    input.bufferedReader().use { reader ->
        reader.readText()
    }
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.