I want to read a file and write it back. Here is my code:
file = open( zipname , 'r' )
content = file.read()
file.close()
alt = open('x.zip', 'w')
alt.write(content )
alt.close()
It doesnβt work, why ?????
Edit:
The rewritten file is corrupted (python 2.7.1 on windows)
source
share