I was just writing a quick command line program and what it does is it reads in a file and then it takes necessary action to whatever is needed of the file to do.
But during a loop I have to check and make sure that there isn't the NULL character so I can have the go ahead to keep reading the file. But, if I have a blank file and I test for the NULL character, it's not there. If I FGETS from this blank file the first char isn't NULL. How do I test for the last char of the file?