[
  {
    "Id": "500078",
    "ThreadId": "229050",
    "Html": "<p>Here is the idea of what I need to do:</p>\r\n<p>\r\n<pre>            using(ZipFile zip = new ZipFile())\r\n            {\r\n                zip.AddEntry(&quot;file1.txt&quot;, &quot;line1&quot;);\r\n                zip.Save(@&quot;c:\\temp\\test.zip&quot;);\r\n                zip.UpdateEntry(&quot;file1.txt&quot;, &quot;line2&quot;);\r\n                zip.Save(@&quot;c:\\temp\\test.zip&quot;);\r\n            }</pre>\r\n</p>\r\n<p>What I would expect is having a &quot;c:\\temp\\test.zip&quot; &nbsp; with&nbsp; &quot;file1.txt&quot;&nbsp; with content&nbsp; &quot;line2&quot;. What I actually get is a zip file with&nbsp; &quot;file1.txt&quot;&nbsp; corrupted.</p>\r\n<p>I need to keep all the information compressed in memory, and from time to time save it to disk. Something that works but that I dont like&nbsp; is&nbsp; after saving&nbsp; the zip to create a new zip file by reading the just saved file, then update and then save again.&nbsp;</p>\r\n<p>Any help will be greatly appreciated.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-09-29T09:03:13.653-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "500491",
    "ThreadId": "229050",
    "Html": "What you want to do should work. I'll have to take a closer look to see the source of the problem. In the meantime, you have your workaround. ",
    "PostedDate": "2010-09-30T06:13:24.58-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]