I have just written this code:
EXl = ('C:\\vd36e404.vdb','C:\\vd368c03.vdb')
x=0
for x in EXl:
import os
filesize= os.path.getsize(x)
print (filesize);
What I would like to do is this. I have a csv file which has in the first column the list of path I need to give to the above program, which should then give me as output the size of the path-file given by the csv file.
Does anyone know how to code that?
I think this would fit you :
http://docs.python.org/library/csv.html
Look at this example :