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
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