write every integer from 0 to 99 to a binary file fp
    int n = 0;
    for (int i = 0; i < 100; i++) {
        n = fwrite(&i, sizeof(int), 1, fp);
        if (n != 1) {
            perror("fwrite");
        }
    }

