哪里错了?sa.txt没内容
#include "stdio.h"#include<string.h>
#include<stdlib.h>
void main()
{ char ch,str1[100][100];//,str2[100],ch;
int i,j;
FILE *fp1,*fp2;
fp1=fopen("2.txt","r");
fp2=fopen("sa.txt","w");
i=0;j=0;
do
{
ch=fgetc(fp1);
while(ch!=';')
{
str1[j][i]=ch;
i++;
ch=fgetc(fp1);
}
j++;
}while(ch!=EOF);
fclose(fp1);
i=0
for(i=0;i<strlen(str1)-2;i++)
fputc(str1[0][i],fp2);
fputc(';',fp2);
putchar(str1[0][i]);
fclose(fp2);
}