struct to bytes
- by Dave18
I'm trying to read encrypted struct data from file using fread(). once i get the decrypted struct bytes, I'd like to it put them back into this struct.
struct data
{
string s1;
string s2;
string s3;
long l;
};
how would you convert a struct into bytes which can be reconstructed from bytes?