hello,
how can i rewrite this code to completely managed?
thank youCode:unsigned int i, j, counter;
unsigned char *ptr;
unsigned char buff[FILE_SIZE];
float array[25][41];
float f1, f2, f3;
FILE *fp;
fp = fopen("file.dat", "rb");
fread(buff, 1, FILE_SIZE, fp);
ptr = buff;
counter = 0;
for (i = 0; i < 41; i++)
{
for (j = 0; j < 25; j++)
{
if (!(counter & 0x1F))
{
ptr += 2;
}
array[j][i] = (*(float *)ptr);
ptr += 4;
counter++;
}
}