File object question

S. D. Rose s_david_rose at hotmail.com
Thu Dec 22 22:12:58 CET 2005


Hello all.
  If I read a binary file:

file = open('c:\\logo.gif', 'rw'') # Read from FS as one way to get the
object, d/l from website another...
file.read()

is there anyway I can determine the 'size' of the object file? (Without
going to the filesystem and reading the filesize from the directory ...)

Thanks!






More information about the Python-list mailing list