Ok, thank you. This means Kotlin does not offer something fancy for this case.
1 reply
Well yes and no. Kotlin has added extension methods above that what you would normally find on java.io.File Normally I would use something like Apache Commons or Guava but now it’s all associated with the File object. A good enhancement by Kotlin is that you can read a lines into a sequence and then deal as see fit so the read becomes lazy rather than eager.