C++ Portable Types Library (PTypes) Version 1.7


Top: Streams: infile

#include <pstreams.h>

infile::infile( [ const string& filename ] );
string infile::get/set_filename();

This class derives all public methods and properties from iobase and instm, and in addition, defines the following:

infile::infile( [ const string& filename ] ) creates an input file stream, but does not open the file. Filename is optional and can be set later, using set_filename().

string infile::get/set_filename() sets the filename. set_filename() closes the stream prior to assigning the new value.

See also: iobase, instm, Examples


PTypes home