Tools.h++ Manual

21-112 104011 Tandem Computers Incorporated
21
RWBoolean Read(double* i, size_t count);
Reads count instances of the indicated built-in type into a block pointed to
by
i
. Returns
TRUE
if the read is successful.
Note – You are responsible for declaring
i
and for allocating the necessary
storage before calling this function.
RWBoolean Read(char* string);
Reads a character string, including the terminating null character, into a block
pointed to by
string
. Returns
TRUE
if the read is successful.
Note – You are responsible for declaring string and for allocating the necessary
storage before calling this function.
Caution – Beware of overflow when using this function.
RWBoolean SeekTo(long offset);
Repositions the file pointer to
offset
bytes from the start of the file. Returns
TRUE
if the operation is successful.
RWBoolean SeekToBegin();
Repositions the file pointer to the start of the file. Returns
TRUE
if the
operation is successful.
RWBoolean SeekToEnd();
Repositions the file pointer to the end of the file. Returns
TRUE
if the operation
is successful.
RWBoolean Write(char i);
RWBoolean Write(wchar_t i);
RWBoolean Write(short i);
RWBoolean Write(int i);
RWBoolean Write(long i);
RWBoolean Write(unsigned char i);
RWBoolean Write(unsigned short i);
RWBoolean Write(unsigned int i);
RWBoolean Write(unsigned long i);
!