Writing struct to the file
Posted on 2000-03-05
I tried to write and read the _RAL_ITEM
struct to file,but when read it,
the _RAL_ITEM struct from file contains
NULL data(such as strings...)
Here is definition:
typedef struct _TIME
typedef struct _RAL_ITEM
CString sData ;
I tried to write it to file this way:
-where f is opened file for writing
and item is filled struct.
And read it this way:
- where f is opened file for reading.
- after reading item.sData or
item.sComment are empty(all data from
struct are empty!!!
How to read it!!!