c语言文件读写操作
摘要:
int main(int argc, char * argv[]){ FILE *stream; char buf[20]; if ((stream = fopen("/Users/dtecadmin/Desktop/File.c", "rw+")) == NULL) { fprintf(stderr,"Cannot open output file.\n"); return 1; } fseek(stream,-6,2); fread(buf, 1,sizeof(buf),stream); printf("%s\n&quo 阅读全文
posted @ 2012-12-28 14:59 南瓜饼 阅读(619) 评论(0) 推荐(0) 编辑