//1) Write a function that takes as an argument a pointer to a text file, and returns the number of
//characters in that file.
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
char str[100];
FILE *file;
if((file=fopen("d:\\text\\file.txt","r")) != NULL)
{
//fgets(str,100,file);
fscanf(file,"%s",str);
fclose(file);
printf("the number of characters in that file = %d\n",strlen(str));
}
else
printf(" File does not found or error in opening");
return 0;
}