> "Janos Blazi" <jblazi at hotmail.com> wrote: > > > How can I find out the length of a file. I have a descriptor fd of the file > > (I am using the os module). import os import stat # file denotes a file-object def fsize(file): return os.stat(file.name)[stat.ST_SIZE] -- Patrick Vrijlandt