Hi, Can anyone tell me how why the code below doesn't work. I have both of the files on my phone.
This is a sample code provided in this site.Code:import zipfile a=zipfile.ZipFile("C:\\x.zip", "r") for i in a.namelist(): b=open("E:\\"+i, "wb") b.write(a.read(i)) b.close() a.close()
Can anyone tell me how to add files to an existing zip file and also how to extract files from a zip file?

Reply With Quote

