D Documentation  
append
void append(char[] name, void[] buffer)

This function appends buffer to the file name.
It can throw a FileException.

Example:
// Import standard-in-out
import std.stdio;
import std.file;

// Main function
int main(char[][] args)
{
  try
  {
    append("test.txt","\nHallo Welt!!\n");
    writefln("Successfully appended to file 'test.txt'");
  }
  catch (FileException xy)
  {
    writefln("A file exception occured: " ~ xy.toString());
  }
  catch (Exception xx)
  {
    writefln("An exception occured: " ~ xx.toString());
  }
  return 0;
}

See also:
FileException, exists, isfile, read, write
Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.