abstract fun fromFile(file: Any, charset: String): TextResource
Creates a text resource backed by the given file.
file
- a text file evaluated as per org.gradle.api.Project#files(Object...)
charset
- the file's character encoding (e.g. "utf-8"
)
Return
a text resource backed by the given file
abstract fun fromFile(file: Any): TextResource
Same as fromFile(file, Charset.defaultCharset())
.