hi
Move the pointer to end and start of the file and get the position using tellp() or tellg() methods(these are c++ methods you have to look for c methods)
Once you have the position calculate the difference.
If you'll get it to be zero then there is no content written in it.
i Have found one link may be it helps you but i'm not sure
http://stackoverflow.com/questions/238603/how-can-i-get-a-files-size-in-c[
^]
Thanks