Compared with the mechanism of C, a major advantage of the file stream classes for file access
is the automatic management of files. The files are automatically opened at construction time and
closed at destruction time. This is possible, of course, through appropriate definitions of corresponding
constructors and destructors.