I need to read form a binary file, which stores data, an array of bytes, but without interpreting them (I mean: I cannot read them as int, or double....). I need them just as bytes. Later on, I will be able to interpret them as corresponds, because I will have information about the data type, so I can say "read them as int or as double".
Can anyone help me, and explain me which is the best way to read them? I have thought to use char * to store them, but I have read also something about uint8_t (in this case, I think the bytes are considered as unsigned int, not sure) and also void *...
Can anyone help me, and explain me which is the best way to read them? I have thought to use char * to store them, but I have read also something about uint8_t (in this case, I think the bytes are considered as unsigned int, not sure) and also void *...
Comment