binfbase
provides the common base class for all file I/O binary
streams. It defines important data types, variables and methods.
binfile.h
binfbase()
~binfbase()
virtual void open(const char *filename, const Mode mode)
virtual void open(const std::string &filename, const Mode mode)
filename
is the filename of the file to open and
mode
specifies in which mode to do so. Refer to the list of
data types for this class for more information on this argument. You
can combine multiple mode flags together, using the |
operator.
void close()
void seek(long pos, Offset offs = Set)
long pos()
binio
. Look there for reference.
enum ModeFlags
open()
method is called. This
type defines the following flags:
Append
NoCreate
Mode
open()
methods to open a file
stream. Refer to enum ModeFlags
above for information on what
flags are defined.
FILE *f