i am trying to write content of a very large char array to the hard disk.
I have the following array(actually the size of it is going to be very large)
I am using the array as a bit array and after inserting a specified number of bits into it I have to copy its content to another array and write this copy into hard disk. I then empty the content of the array by assigning it 0 for further use.
unsigned char bit_table_[ROWS][COLUMNS];
You should open a file for writing, and then write the array to it:
References:
fopen,fwrite,fclose