Function write

Like std.file.write, but supports Path, command echoing and dryrun.

void write (
  const(Path) name,
  const(void[]) buffer
);

void write (
  const(string) name,
  const(void[]) buffer
);

To avoid naming conflicts with std.stdio.write, you may wish to use the writeFile alias instead. A readFile is also provided for symmetry with writeFile.