#include
int main(void)
{
FILE *p;
char ch[80] = {'\0'};
int i = 0;
p = fopen("a.txt", "r");
while(!feof(p))
{
if(fgetc(p) == '>')
{
while((ch[i++] = fgetc(p)) != '<');
ch[i-1] = '\n';
}
}
printf("%s", ch);
fclose(p);
return 0;
}
//还是我,这次支持中文,看了一下材料,中文得用字符数组解决