Can anyone tell me why this code won't run.
I'm trying to write a code that reads the number of lines in a text file.
int main (void)
int count = 0;
inp = fopen("Text.txt", "r");
while (inp != EOF);
fscanf (inp, "%[^\n]", &count);
if(inp == '\n')
printf("The counter is %d", count);