appendText


Description:

public static bool appendText (Path path, string text)

Appends a string to the end of a file. Creates the file if it does not exist.

Example:

    var path = new Path ("/tmp/log.txt");
Files.appendText (path, "new log entry\n");

Parameters:

path

path to the file.

text

the string to append.

Returns:

true if append succeeded, false otherwise.