another: calculate size of the file and check how much bytes you've already read.