title: Stream or file is not closing
body: <p>I have he following code</p>
  
  <pre><code>    HttpPostedFileBase files = Request.Files[0];
      Stream fileStream = files.InputStream;
  
      using (Stream file = System.IO.File.OpenWrite(originalImage))
      {
          StreamUtil.CopyStream(fileStream, file);
          file.Close();
          fileStream.close();
          fileStream.dispose();
      }
  
      // here is CopyStream method
  
      public static void CopyStream(Stream input, Stream output)
      {
          var buffer = new byte[8*1024];
          int len;
          while ((len = input.Read(buffer, 0, buffer.Length)) &gt; 0)
          {
              output.Write(buffer, 0, len);
          }
      }
  </code></pre>
  
  <p>When i try to write the same file twice i get </p>
  
  <pre><code>The process cannot access the file \u0027D:FILENAME because it is being used by another process
  </code></pre>
  
  <p>How can i close this ?so once the request the writing is done, it will be closed?</p>