Ok but the main problem is how to bufferize(store in a buffer) the data of the file as a string (hex dump) so i can manipulate them more simply.
Example:
suppose the hex dump of my binary file is :
Code:
0000000 ff07 ffff ffff ffff ffff ffff ffff ffff
0000020 06ff 1016 0740 fff3 ffff ffff ffff ffff
0000040 6004 0101 3074 ffff ffff ffff 4bff 4200
0000060 331f 0000 0051 fff1 ffff 4bff 4200 011f
0000100 ff04 00ff 0011 0000 ff00 1610 1939 1202
i want to store it in a char buffer:
char buffer[512];
and after running the program i can loop through my data file using this char buffer.
Regards.