Join Slack
Powered by
Hi! I’m doing a Kotlin course on Hyperskill. One o...
# getting-started
p
Pim
01/28/2025, 4:22 PM
Hi! I’m doing a Kotlin course on Hyperskill. One of the topics explains that when reading large files (size > 2Gb) you should use
File.forEachLine
instead of
File.readText
. Is this due to the fact that if you would call
File.readText
or
File.readLines
on a large file, you might go out of memory because the List grows too big?
👌 4
Open in Slack
Previous
Next