api / org.gradle.api.resources / TextResource / asReader

asReader

abstract fun asReader(): Reader

Returns an unbuffered Reader that allows the resource's text to be read. The caller is responsible for closing the reader.

Return
a reader that allows the resource's text to be read.