
LineWriter |
ptolemy.actor.lib.io.LineWriter |
This actor reads string-valued input tokens and writes them,
one line at a time, to a specified file. It does not
include any enclosing quotation marks in the output.
If you need the enclosing quotation marks, use ExpressionWriter.
The file is specified by the fileName attribute
using any form acceptable to FileParameter.
If the append attribute has value true,
then the file will be appended to. If it has value false,
then if the file exists, the user will be queried for permission
to overwrite, and if granted, the file will be overwritten.
If the confirmOverwrite parameter has value false,
then this actor will overwrite the specified file if it exists
without asking. If true (the default), then if the file
exists, then this actor will ask for confirmation before overwriting.
Author(s): Edward A. Lee
Version:$Id: LineWriter.java,v 1.27 2005/07/08 19:56:24 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Red (liuj)
append
If true, then append to the specified file. If false
(the default), then overwrite any preexisting file after asking
the user for permission.
fileName
The file name to which to write. This is a string with
any form accepted by FileParameter. The default value is
"System.out".
confirmOverwrite
If false, then overwrite the specified file if it exists
without asking. If true (the default), then if the file
exists, ask for confirmation before overwriting.