i'm being able to call my text file from my c program but when coming to count the number of paragraphs in the text i can't find what i have to do so that my c program increments my counter by 1 it has to find and empty line.
this is my program
#include <stdio.h>
char filename[500];
int main(void)
{
FILE *f;
int count;
printf("Enter the Text file :\n");
gets(filename);
f=fopen ("filename","r");
if (!f) {
return 1;
}
else currentChar == "\n"
{
(count+1);
}
fclose(f) ;
getchar();
getchar();
return 0;
}
in desperate need of help