By using an if statement how could i get a character to detect end-of-file.
i was thinking something like this:
char a = '\0';
int count = 0;
if(a == EOF)
{
count++;
}//endif
but it doesn't seem to detect the end-of-file. Any idea would be appreciated.
Thanks
zingwing