Looking for a way to iterate over a stream of file...
# getting-started
m
Looking for a way to iterate over a stream of files, line by line and producing a sequence of strings split by “\n\n”, so in effect what
Copy code
Files.newBufferedReader("myfile").use { f -> f.readText().splitToSequence("\n\n").forEach{ } }
does, but for multiple files w/o reading the full text of each file before splitting it. Someone got an idea? Or should I pen this on SO?