On Sun, 10 Oct 1999, Federico Mena Quintero wrote: > lseek() returns the offset to which you seeked, so lseek (swap_fd, 0, > SEEK_END) will give you its size. I think this will just give you the LENGTH of the file? So, I don't know if it matters, but ISTR that Gimp uses files with holes, and therefore LENGTH != SIZE. Nick.