Logo

Programming-Idioms

  • Scala
  • Pascal

Idiom #228 Copy a file

Copy the file at path src to dst.

uses FileUtil;
Success := CopyFile(src, dst);

CopyFile returns True upon success, False upon failure
with Ada.Directories;
Ada.Directories.Copy_File (Source_Name => Src,
                           Target_Name => Dst);

New implementation...