>>419
#include <stdio.h>
int main()
{
FILE *sfp;
char sfn[FILENAME_MAX];
int c, count;
//printf("*** Sample program ***\n");
printf("filename:\n");
scanf("%s",sfn);
if((sfp = fopen(sfn,"r")) == NULL)
{
printf("File Not Found!!\n");
return -1;
}
while((c=getc(sfp)) != EOF)
{
if(c == 'e')
count++;
}
fclose(sfp);
printf("Number of 'e's in file: %d\n", count);
return 0;
}