As mentioned before ventilator, it will then stop the loop early, if there are zeros in the file.
So file_seek is probably the best approach.

Last edited by Slin; 06/15/10 14:29.