Dear all,
I open a binary file and want to write 0x00040700 to this file.
how can I set write buffer?
---------------------------------------------------
typedef unsigned char UCHAR;
int iFD=open(szFile Name,O_CREAT|O_ BINARY|O_TRUNC| O_WRONLY,S_IREA D|S_IWRITE);
UCHAR buffer[5]; //???????????
write(iFD,buffe r,5);
---------------------------------------------------
Thanks.
Regards,
cylin.
I open a binary file and want to write 0x00040700 to this file.
how can I set write buffer?
---------------------------------------------------
typedef unsigned char UCHAR;
int iFD=open(szFile Name,O_CREAT|O_ BINARY|O_TRUNC| O_WRONLY,S_IREA D|S_IWRITE);
UCHAR buffer[5]; //???????????
write(iFD,buffe r,5);
---------------------------------------------------
Thanks.
Regards,
cylin.
Comment