c文件读写
1.打开文件fopen(char *filename,char *mode)//文件名,访问模式(r代表打开已有文本文件,只读,w代表打开文件,从头写写,a代表打开文件追加写。)
2.关闭文件fclose(file *fp);
3写入文件fputc(int c,file *fp);
4读取文件fgetc(file *fp);
char*fgetc(char*buf,int n,file*fp);//读取字符串复制到缓冲区
c文件读写
1.打开文件fopen(char *filename,char *mode)//文件名,访问模式(r代表打开已有文本文件,只读,w代表打开文件,从头写写,a代表打开文件追加写。)
2.关闭文件fclose(file *fp);
3写入文件fputc(int c,file *fp);
4读取文件fgetc(file *fp);
char*fgetc(char*buf,int n,file*fp);//读取字符串复制到缓冲区