title: How to copy a read-only file?
body: <p><code>System.IO.File.Copy</code> is failing when the source file has the read-only attribute set.</p>
  
  <p>Copying  to  I get an error:</p>
  
  <blockquote>
    <p>Access to the path <code>&lt;destination&gt;</code> is denied.
    (System.UnauthorizedAccessException)</p>
  </blockquote>
  
  <p>I have a scenario where I am copying a template file to a destination path prior to modifying it, and for safety I'd rather the template was read-only.</p>
  
  <p>Why can't I copy a read-only file in this way, and how can I achieve what I want most easily/sensibly? And... why is the exception about the <em>destination</em> file when this file is never created?</p>
  
  <p>note: whether the copied file is read-only or not I don't care, that's easy to fix</p>