摘要: deleted! 阅读全文
posted @ 2012-07-26 16:14 Qiengo 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2012-07-26 12:17 Qiengo 阅读(135) 评论(0) 推荐(0) 编辑