Very stupid question.

Fredrik Lundh fredrik at
Thu Mar 30 19:37:47 CEST 2006

"Sullivan WxPyQtKinter" wrote:

> How to get the length of a file via build-in file object support? In
> Visual Basic there is len(file) of something like that. But in python,
> where is this property?

import os

size = os.path.getsize(filename)


More information about the Python-list mailing list