>if you use a number of byte instead of number of line may be you can get the file size and when you scan the file make a counter of byte read so you will able to make your thermometer...
I'm not sure I understand what you mean.
As for a thermometer, we need to have the number of loop before processing the first line.