I need to write some data to a binary file.
What is the proper fopen() arguments for opening a binary file for writing, and which function do I use to write to the file? fgets() or fwrite()?
I am writing a structure of data to file.
struct frameInfo {
float ssmTime;
int data;
};
struct frameInfo frame[16];
A little help with the arguments for doing this would be appreciated.
Thanks.