69,368
社区成员
发帖
与我相关
我的任务
分享
file = fopen("TempRecord.txt","r");
logfile = fopen("CountHour.txt","a+");
if((file == NULL) || (logfile == NULL))
{
return -1;
}
strcat(buf,"tashan is start,begin read logfile ! \r\n");
fprintf(logfile,"%s",buf);
fgets(num,10,file);
sscanf(num,"%d",&curentNum);
g_nBroadNum = curentNum;
fprintf(logfile,"Broad date current is %d\r\n",curentNum);
fclose(logfile);
fclose(file);
return 0;