title: How to use copy_file in boost::filesystem?
body: <p>I want to copy a file from directory to another, but my program always aborts for some reasons.Has anyone done this this before could tell me what was wrong? And how could I catch exceptions was thrown by <code>copy_file</code>, I checked boost site, but I could not find any relevant information about exception.</p>
  
  <pre><code>path user_path( "C:\\My Folder" );
  boost::filesystem::create_directory( user_path );
  path file(  "C:\\Another\\file.txt" );
  boost::filesystem::copy_file( file, user_path );
  </code></pre>
  
  <p>Thanks,</p>