1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| struct _iobuf { char *_ptr; int _cnt; char *_base; int _flag; int _file; int _charbuf; int _bufsiz; char *_tmpfname; }; typedef struct _iobuf FILE; FILE *p=fopen("路径","打开方式"); int fclose(File *stream); int fputc(int ch,FILE *stream); int fgetc(FILE *stream); int fread(void *buffer,size_t size,FILE *stream); int fwrite(const void *buffer,size_t size,size_t count,FILE *stream); int fseek(FILE *stream,long offset,int origin);
char *fgets(char *str,int num,FILE *stream);
int fputs(const char* str,FILE *stream);
int fprintf(FILE *stream,const char *format,...);
int fscanf(FILE *stream,const char *format,...);
|