[
  {
    "Id": "616985",
    "ThreadId": "258694",
    "Html": "\r\n<p>when I have a corrupted zip file, my program throws an exception and leaves the &quot;for loop&quot; (actually, all the for loops). what should I do to skip the corrupted zip file (maybe throwing a message box) and continue extracting files from the next zip file.\r\n the code where the exception is thrown because of the corrupted zip file, is :</p>\r\n<p><span style=\"font-size:x-small\"><span style=\"font-size:x-small\"></p>\r\n<p>ZipFile ^zip =</p>\r\n<font size=\"2\">\r\n<p>&nbsp;</p>\r\n</font><span style=\"color:#0000ff; font-size:x-small\"><span style=\"color:#0000ff; font-size:x-small\">gcnew</span></span><span style=\"font-size:x-small\"> ZipFile(ZippedNames[i]);</span></span></span>\r\n<p></p>\r\n<p>&nbsp;</p>\r\n<p>P.S. Also, the way I know the zip file is corrupted, when I double click on the zip file itself from windows explore, I get the following message:</p>\r\n<p>&quot;cannot open file: it does not appear to be valid archive, if you downloaded this file, try downloading the file again&quot;</p>\r\n<p>P.S. Also, I don't want to use Try-Catch allover my code if there is a better way. Thanks.</p>\r\n",
    "PostedDate": "2011-05-23T13:59:39.993-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "618608",
    "ThreadId": "258694",
    "Html": "<p>Try..catch is the way to handle exceptions in .NET.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-05-26T05:04:47.62-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]