Login
Remember
Register
Ask a Question
Give me name of the extension methods Kotlin provides to java.io.File
0
votes
asked
Oct 5, 2021
in
Kotlin
by
rajeshsharma
Give me name of the extension methods Kotlin provides to java.io.File
kotlin-extention-method
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 5, 2021
by
rajeshsharma
below are the
the extension methods Kotlin provides to java.io.File
bufferedReader(): Use for reading contents of a file into BufferedReader
readBytes() : Use for reading contents of file to ByteArray
readText(): Use of reading contents of file to a single String
forEachLine() : Use for reading a file line by line in Kotlin
readLines(): Use to reading lines in file to List
...