摘要:
deleted! 阅读全文
摘要:
1.write filevoid outputFile(long time){ char buf[128]; int n=sprintf(buf,"%d",time);//write the content to buffer first! buf[n]=0; FILE *stream; stream= fopen( "./time.txt", "w+b" ); fwrite(buf, 1,n, stream ); fclose(stream);}fwrite(buf, 1,n, stream ); buf: the content 阅读全文