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
{
std::string s1;
std::string s2;
std::string s3;
LONG l;
};
how would you convert a struct into bytes which can be reconstructed from bytes?