#include <stdio.h>

typedef unsigned long ulong;

#define ARRAY_LENGTH      100
#define OUTPUT_FILE_NAME  "Numbers.bin"

void main ()
{
  ulong array[ARRAY_LENGTH];

  for (ulong counter = 0; counter < ARRAY_LENGTH; counter ++) 
  {
    array[counter] = counter;
  }

  FILE *stream = fopen (OUTPUT_FILE_NAME, "wb+");
  fwrite ((void *) array, sizeof (char), ARRAY_LENGTH * sizeof (ulong), stream);
  fclose (stream);
}
