kotlin.io.java.net.URL.readText

readText

inline fun URL.readText(
    charset: Charset = Charsets.UTF_8
): String

Platform and version requirements: JVM

Reads the entire content of this URL as a String using UTF-8 or the specified charset.

This method is not recommended on huge files.

Parameters

charset - a character set to use.

Return a string with this URL entire content.<