Append
Appends the specified data to its input and outputs the result.
Header File
append.h
Description
An instance of this class is a filter object that outputs all of the lines
input to it unchanged, then outputs the data specified when the Append filter
was constructed. Note that if the last line of input passed to an Append filter
doesn`t end with a newline then the appended data will be appended to that last
line; that is, no newline will be inserted between the last line and the
appended data.
Constructors
Append::string(const String &str)
- appends str
to its input
Append::file(const String &pathname)
- appends the contents
of the file specified by pathname to its input
Append::stream(istream &in)
- appends all of the data read
from the istream in to its input
Append(const Append &f)
- copy constructor
Limitations
Known Bugs
Author and Copyright
Author: James MacKay
Last Updated: June 8, 1997
Copyright © 1997 James MacKay