linux 应用编程IO ,文件读写(普通文本文件)
vim编辑源代码 file1.c
#include “stdio.h”
int main(int argc,char *argv[])
{
FILE *fp1,*fp2;
char ch[maxsize];
if(argc!=3)
{
printf(“command error!\n”);
return -1;// exit(-1);
}
if( (fp1=fopen(argv[1],“r”))==NULL)
{
printf(“file %s cannot open”,argv[1]);
return -
原创
2020-07-23 11:23:36 ·
188 阅读 ·
0 评论