Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been looking over the .zip documentation from Mathematica ( It seems pretty straighforward to export and import from/to a .zip file, but how can i add content to an existing .zip file?

share|improve this question
you need to import the whole thing, add your content and re-export. – george2079 Mar 30 '14 at 0:42
This question appears to be off-topic because it concerns the structure of zip files in a way that is not specific to Mathematica. – m_goldberg Mar 30 '14 at 1:45
@m_goldberg while it may not work out of the box the question is still valid and perhaps someone will come up with a clever solution. – Yves Klett Mar 30 '14 at 12:09
the zip format is open. You'll need to read and reconstruct the central directory to include reference to your new file. Seems do-able, on the other hand there are plenty of simple command line utilies that already do this so why reinvent the wheel?… – george2079 Mar 30 '14 at 13:13
Since there are utility apps available that can add a file or files to an existing .zip, and at least "out of the box" Mathematica cannot do such, it doesn't seem off-topic to have the question here. – murray Mar 30 '14 at 15:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.