TextFileWriter
org.resurgence.actor.TextFileWriter

This actor reads a string-valued input token and writes it to the corresponding file without any extra line breaks. It does not include any enclosing quotation marks in the output. The path and name of the file are given via an input port. The user can decide if the text is appended to the file if it exists, if an existing file is overwritten, or left as it is.

This actor is based on the Ptolemy II LineWriter actor.

Author(s): Wibke Sudholt, University and ETH Zurich, November 2004
Version:$Id: TextFileWriter.java,v 1.1 2005/03/18 18:16:58 sudholt Exp $


string
The first input port, which contains the text to be written.

fileToWrite
The second input port, which contains the file path and name to which to write.

fileWritten
The output port, which contains the name and path of the written file.



change
The parameter, which specifies what should happen to existing files.