char* add(char *s)
{
int i=0;
char str[10];
FILE *fp;
printf("input file name:\n");
scanf("%s",str);
fp=fopen(str,"r"); //打开文件夹
if(fp==NULL) //检查是否正常打开
{
printf("can't open the file");
exit(0);
}//读取字符
while(!feof(fp))
{
s[i]=fgetc(fp);
i++;
}
s[i]='\0';
fclose(fp);
return s;
}