   Short question about data from a file
  Hello!If I have a scenario like this:struct MyStruct{    float A;    int B;    byte C;};MyStruct Test;...fwrite(&Test,sizeof(MyStruct),1,f);can I load the struct then like this?fread(&SomeFloat,sizeof(float),1,f);fread(&SomeInt,sizeof(int),1,f);fread(&SomeByte,sizeof(byte),1,f);Or do I always have to load the whole struct at once?   
  Structs will not reorder members, nor will they change their sizes (see below though). As such, writing three consecutive values of known types using a struct, and then reading them back in the same order using separate calls is fine. However, you may want to make sure that the struct isn't padded in weird ways. The compiler likes to do this to align the structure properly in memory. This is an optimization that can, and in cases like this, should be disabled:#pragma pack(push, 1)// struct goes here#pragma pack(pop);  Nice, thank you :)   