This actor reads input tokens and writes them, one line at a time,
to a specified file. The format it uses is that generated by the
toString() method of the token, which for most tokens is an expression
that can be read back in using ExpressionReader. String tokens, for
example, include the enclosing quotation marks in the output.
If you do not want the enclosing quotation marks, use LineWriter.
<p>
The file is specified by the <i>fileName</i> attribute
using any form acceptable to FileParameter.
<p>
If the <i>append</i> attribute has value <i>true</i>,
then the file will be appended to. If it has value <i>false</i>,
then if the file exists, the user will be queried for permission
to overwrite, and if granted, the file will be overwritten.
<p>
If the <i>confirmOverwrite</i> parameter has value <i>false</i>,
then this actor will overwrite the specified file if it exists
without asking. If <i>true</i> (the default), then if the file
exists, then this actor will ask for confirmation before overwriting.
Edward A. Lee
$Id: ExpressionWriter.java 70398 2014-10-22 23:44:32Z cxh $
Ptolemy II 2.2
Green (eal)
Yellow (cxh)