title: How to Avoid "Used by another process" When using File.Copy in C#
body: <p>I am trying to Copy File from path to another using the following code:</p>
  
  <pre><code> File.Copy(oldPath, newPath);.
  </code></pre>
  
  <p>newPath represent Path and filename like <code>C:\txt.txt</code></p>
  
  <p>oldPath represent path and filename like <code>d:\d.txt</code></p>
  
  <p>I get the following Exception:</p>
  
  <blockquote>
    <p>C:\txt.txt Used From another Process</p>
  </blockquote>
  
  <p>Why this issue showing?</p>