Since the file contains binary data and ITA
is an unsigned int
array:
#include <stdio.h>
void readBinary(char *const filename, unsigned int *const ITA, const int size) {
FILE *pFile = fopen(filename, "r");
for (int i = 0; i < size; i++) {
char value;
fread(&value, 1, 1, pFile);
ITA[i] = (unsigned int) value;
}
fclose(pFile);
}
Parameter size
should be 7
in the scenario you described.