kotlin-stdlib / kotlin.io / java.io.Reader / readText readText JVM 1.0 fun Reader . readText ( ) : String (source) Reads this reader completely as a String. Note : It is the caller's responsibility to close this reader. Return the string with corresponding file content.