File *fp= fopen("文件名","a+");
if(fp== NULL) return;
fwrite(buffer,size,count,fp);
fflush(wFile);
fclose(wFile);
File *fp= fopen("文件名","a+");
if(fp== NULL) return;
fwrite(buffer,size,count,fp);
fflush(wFile);
fsync(fileno(fd));
fclose(wFile);