How to read a binary file with different format of length?
for example there are a specific value after 3200 bytes of binary file which formated in 4 bytes, 2 bytes, 2 bytes, and 1 bytes.
I tried to read using
fread(&buffer, 1, 1, file);
then contenate the 4 bytes char in buffer variable - into one char - then convert it to integer but it doesn't work. Only show like if it was one byte length.