Open the file. With a while loop.
Code:
while(fgetc(file) != EOF)
{
count++;
}
~Sven