- 4,650
- 39
Here's my assignment:
Write code to open a file called adata.out, and write the contents of the following array out to it in binary form (with no data conversion).
int a[5];
My first question is, why I am I asked to write to a file with the extension .out? Why not .txt?
My second question is, is fopen() what I should use to open a file for writing to it?
Thanks for your help!
Write code to open a file called adata.out, and write the contents of the following array out to it in binary form (with no data conversion).
int a[5];
My first question is, why I am I asked to write to a file with the extension .out? Why not .txt?
My second question is, is fopen() what I should use to open a file for writing to it?
Thanks for your help!