Hi there,
I'm new to Kotlin and currently writing a text file parser. I've come across the useful function File.forEachLine. What I want to do know, is to print out the progress of file reading, e.g. by getting the current file pointer.
It seems that I can neither access the InputStream, which is used inside the forEachLine function, nor can I find another way of getting the current position in the file.
Does someone know how I can get file position or currentLine / totalLines within forEachLine?
Thanks in advance!