void append(char[] name, void[] buffer)
|
This function appends buffer to the file name.
It can throw a FileException.
Example:
import std.stdio;
import std.file;
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
|