a character string naming a file or connection to write the
output to. If no file path is specified or file = "" the result
is printed to the console.
append
logical indicating whether the output should be
appended to the file. If append = FALSE the contents of the
file will be overwritten (the default setting).
edges
logical indicating whether edge weights should be
included in the output string.
...
further arguments to be passed to format. Used to
specify the numbering style of the edge weights (if edges = TRUE).
read.dendrogram to parse a "dendrogram"
object from a text file.
The write.tree function in the ape
package performs a similar operation for "phylo"
and "multiPhylo" objects.