Is there an easy way to check if a file is empty. Like if you are passing a file to a function and you realize it\'s empty, then you close it right away? Thanks.
E
pFile = fopen("file", "r"); fseek (pFile, 0, SEEK_END); size=ftell (pFile); if (size) { fseek(pFile, 0, SEEK_SET); do something... } fclose(pFile)