Pages

Saturday, July 3, 2010

How to find the Size of a file in Python???

To find the size of a file  in python, type the following code
snippet in the Python Interpreter.....


import os
b= os.path.getsize("Filename Only with full path or relative path")
print b


That 's all !!!!

No comments:

Post a Comment