So here's the problem, I have to show the progress of reading all the files in a file, I was going to approach it by changing the progress by how many lines its read to the amount of lines in the file.. But how can i get the lines in the file without reading the file and adding 1 to the amount of lines each time i read a line?
Or is there some kind of approach where i can check how many more bytes are available to read?
Or is there some kind of approach where i can check how many more bytes are available to read?