if your arrays don't have variable sizes per element, you can write them in binary form with:
Code:// a is the array pointer // f is pointer to FILE type. // sizeof(int) assuming you are saving an array of ints. fwrite( a, sizeof(int), 100, f );