发布时间:2015-11-01 12:10:48
一.基于文件指针FILE * linux文件类型有:普通,管道,目录,设备,符号链接,套接字1.打开:FILE *fopen(const char *path, const char *mode);mode:rb, r+b, wb, w+b, ab, a+b;2.关闭:int fclose(FILE *stream);3.读写:3.1块://从文件stream中读nmemb*size个字节到ptrsize_t fread(void *ptr, size_.........【阅读全文】