title: What is the recommended way to copy a file to a tmp folder?
body: <p>I need to copy a file to a tmp location in order to manipulate it. I need to ensure that I always can copy the file. </p>
  
  <ul>
  <li>Is the following code correct?</li>
  <li>Does it ensure that never try to copy to a location that already exists?</li>
  <li>Is there any chance of failure? (Should I catch any exceptions)</li>
  </ul>
  
  <p>The code that I am using is the following:</p>
  
  <pre><code>string tmpFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
  </code></pre>
  
  <p>Thanks in advance.</p>