I wish to play with the file in binary mode.
1)What type of viarible should i use to store it as binary?
2)May i know what is this n how to use this code n how to pass value between buffer (copy all contents to another buffer)
3)How to empty the buffer?Code:*buffer
4)How to read/write binary file? Please explain in more details ...[FAQ section just covered the text file]
5)How to determine how much data is to be written?
Is it 2*4= 8bytes ? where the 2 come from? n i'm also desire to know how to write bit 2 bit...Code:fwrite(writer[1], sizeof(int), 4, *level_1)
I'm not really understand this coding so i'm asking in question #3.
Correct me if i did something wrong in the coding....
6)n please provide more information about working with binary files thanks...