Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWFile
Synopsis
Description
Persistence
Public Constructors
Public Member Functions
Static Public Member Functions
Synopsis
#include <rw/rwfile.h>
RWFile f("filename");
Description
Class RWFile encapsulates binary file operations using the Standard C stream library (functions
fopen(), fread(), fwrite(), etc.). This class is based on class PFile of the Interviews Class
Library (1987, Stanford University). The member function names begin with upper case letters
in order to maintain compatibility with class PFile .
Because this class is intended to encapsulate binary operations, it is important that it be opened
using a binary mode. This is particularly important under MS-DOS -- otherwise bytes that
happen to match a newline will be expanded to (carriage return, line feed).
Persistence
None
Public Constructors
RWFile(const char* filename, const char* mode = 0);
Construct an RWFile to be used with the file of name filename and with mode mode. The