[
  {
    "Id": "899885",
    "ThreadId": "391863",
    "Html": "\r\n<p>I'm writing a script in ASP.Net to zip up a bunch of logs and provide a download link.</p>\r\n<p>The logs are the output of <a href=\"http://nlog-project.org/\">NLog</a> and so my be being written to at the moment when a user requests a download.</p>\r\n<p>How does DotNetZip deal with this situation ? I've got code which looks like this :</p>\r\n<p>&nbsp;</p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre><span style=\"color:blue\">string</span> selection = String.Format(<span style=\"color:#a31515\">&quot;(name = *.txt) AND (mtime &gt; {0})&quot;</span>, fiveDaysAgoAsISODate);\r\n<span style=\"color:blue\">using</span> (ZipFile zip = <span style=\"color:blue\">new</span> ZipFile())\r\n{\r\n    zip.AddSelectedFiles(selection, fsDynamicContentPath, <span style=\"color:blue\">false</span>);\r\n    zip.Comment = <span style=\"color:#a31515\">&quot;This zip was created at &quot;</span> &#43; sDateNow;\r\n    zip.Save(fsFileToStoreZip);\r\n}\r\n\r\n\r\n<br></pre>\r\nI understand that nothing much will happen until the .Save gets executed but can anyone tell me what happens then if one of the selected files is open for writing ?</div>\r\n",
    "PostedDate": "2012-08-16T04:57:35.93-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]