#include <string.h> |
#include <stdio.h> |
int main ( void ) |
{ |
FILE *fp; |
char buf[11] = "0123456789" ; |
/* create a file containing 10 bytes */ |
fp = fopen ( "DUMMY.FIL" , "w" ); |
fwrite ( &buf, strlen ( buf ), 1, fp ); |
/* close the file */ |
fclose ( fp ); |
return 0; |
} |