Cleanup

Drew Miller replied to Peter Bromberg at 02-Apr-08 10:32
It seems prudent to me to wrap both the ZipOutputStream and FileStream with using statements, to ensure that the code is being properly disposed of.  Maybe I'm just overly cautious though ^_^



Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Article Discussion: Zip / Unzip folders and files with C# - Peter Bromberg  04-Feb-08 12:01:37 PM
      How to use this "utility class" to zip and store one excel file? - Ashok kumar  14-Feb-08 5:33:13 AM
          If you want to zip and store one Excel file - Peter Bromberg  02-Mar-08 7:47:23 PM
      Framework 2.0 - Doug Odegaard  21-Feb-08 3:16:31 PM
          Correct. - Peter Bromberg  02-Mar-08 7:45:32 PM
              DotNetZip - Doug Odegaard  13-Mar-08 9:25:38 AM
      Cleanup - Drew Miller  02-Apr-08 10:32:35 AM
          Stream Closing - Ross Killip  22-May-08 6:42:25 AM
View Posts