Hi. If you can use C++, read my post in this thread:
http://www.antionline.com/showthread...hreadid=255646

If you have to use C, replace seekg() with fseek() and tellg() with ftell() in the example in my post.

Peace always,
<jdenny>