Very stupid question.

Fredrik Lundh fredrik at pythonware.com
Thu Mar 30 12:37:47 EST 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)

</F>






More information about the Python-list mailing list