Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Ada

Idiom #228 Copy a file

Copy the file at path src to dst.

with Ada.Directories;
Ada.Directories.Copy_File (Source_Name => Src,
                           Target_Name => Dst);
System.IO
File.Copy(src, dst, true); 

The 3rd argument true means "may overwrite".

New implementation...