Let DWORD fLen = 12, and BYTE pbuff = 0.
f is a valid file, opened in binary mode.
Why does the output look like "00 0C 00", instead of "00 0C 00 00 00 00"?Code:fwrite(&pbuff, 1, 1, f); fwrite(&fLen, 4, 1, f); fwrite(&pbuff, 1, 1, f);
Z.
|
Results 1 to 4 of 4
Thread: Fun Fun File I/OThreaded View
|
Click Here to Expand Forum to Full Width |