B
bergko
Hi there,
I'm thinking of how to write a struct to a binary file, could anyone
help me with this?
for example
typedef struct record{
char *name
int contact
}rec;
file1 = fopen(..,"wb");
...
fwrite(rec, sizeof(rec),1,file1);
I've tried the above but it doesn't seem to work properly. Could anyone
help me.
thanks
I'm thinking of how to write a struct to a binary file, could anyone
help me with this?
for example
typedef struct record{
char *name
int contact
}rec;
file1 = fopen(..,"wb");
...
fwrite(rec, sizeof(rec),1,file1);
I've tried the above but it doesn't seem to work properly. Could anyone
help me.
thanks