When you're using text files, seek will not operate as you expect. The C standard defines that only offsets returned by ftell are legal arguments to fseek when working with a text file, and Python doesn't prevent you from shooting yourself in the foot here. Jeff