hi,
I have an array of ints saved as a binary file and now im trying to load that file back into the array ... this is what i have so far, not sure what to do from here.

Code:
#include <stdio.h>
#include <stdlib.h>

#define MAX_SIZE 100

int main(int argc, char*argv[])
{
   FILE *intArrayFile;
   char *buffer;
   long size;
   int new_array[MAX_SIZE];

   intArrayFile = fopen("intFile", "rb");
   size = ftell(intArrayFile);
   rewind(intArrayFile);
   buffer = (char*)malloc(size);
   fread(buffer, 1, size, intArrayFile);

   /*ive loaded the file into the buffer, now how do i make
      set the new_array to the buffer?*/

   return 1;
}
many thanks