#include <pstreams.h>
class outfile: outstm {
    outfile( [ const string& filename, bool append = false ] );
    string get/set_filename(string);
    bool   get/set_append(bool);
    int    get/set_umode(int);
}
This class derives all public methods and properties from iobase and outstm, and in addition defines the following:
outfile::outfile( [ const string& filename, bool append = false ] ) creates an output file stream, but does not open the file. When opening a file with open(), it is truncated to zero unless append property is set to true. Filename and append parameters are optional.
string outfile::get/set_filename(string) sets the file name. set_filename() closes the stream prior to assigning the new value.
bool outfile::get/set_append(bool) -- if set to true, the file pointer is set beyond the last byte of the file when opening the stream with open().
int outfile::get/set_umode(int) sets UNIX file mode when creating a new file. By default a file is created with 0644 octal, which on UNIX means read/write access for the owner and read-only access for group members and all others. This property has no effect on Windows.
See also: iobase, outstm, logfile, Examples