title: Deletion of compressed file after extracting it with nunrar
body: <p>I used the lib <code>Nunrar</code> <a href="http://nuget.org/packages/nunrar" rel="nofollow">site</a> to extract  a <code>.rar</code> file:</p>
  
  <pre><code>RarArchive.WriteToDirectory(fs.Name, Path.Combine(@"D:\DataDownloadCenter", path2), ExtractOptions.Overwrite);
  </code></pre>
  
  <p>the decompression works fine, but I can't after this operation of extract delete the original compressed file  </p>
  
  <pre><code>System.IO.File.Delete(path);
  </code></pre>
  
  <p>because the file is <em>is used by another process</em>
  the hole function :</p>
  
  <pre><code> try
             {
                 FileStream fs = File.OpenRead(path);
                 if(path.Contains(".rar")){
  
                     try
                     {
                         RarArchive.WriteToDirectory(fs.Name, Path.Combine(@"D:\DataDownloadCenter", path2), ExtractOptions.Overwrite);
                         fs.Close();
  
                     }
                     catch { }
  
                     }
  
             catch { return; }
             finally
             {
                 if (zf != null)
                 {
                     zf.IsStreamOwner = true; // Makes close also shut the underlying stream
                     zf.Close(); // Ensure we release resources
                 }
             }
             try
             {
                 System.IO.File.Delete(path);
             }
             catch { }
  </code></pre>
  
  <p>So can I delete the compressed file after extract it?</p>