按行读文件程序,请指正;
#include "stdio.h"
#include "string.h"
main()
{
FILE *fp;
int i;
char *che[2000];
fp=fopen("v.txt","r");
if(fopen("v.txt","r")==NULL)
printf("not's\n");
if(fgets(che,20,fp)==1)
for(i=0;i<20;i++)
printf("%s",che[i]);
fclose;
}
tc编译通过,执行没有数据,请指正!!!