Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding files to a zip

Status
Not open for further replies.

SSJ

Programmer
Sep 26, 2002
54
PT
I've been playing around with the java.util.zip package, and it's really easy to compress a file and extract files from zip archives.
What I was trying to do now is to add a file to an already existing zip archive (and if a file with the same name exists in the archive replacing it). I couldn't find any way to do this. Actually the only way that I managed to do it was by extracting everything from the archive and compressing everything again. Can anyone give me some light on how should I do it?

TIA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top