cuz he is using a file pointer can he seek using fseek to the end of th
file, and use ftell to tell him the filesize.
for example:
i assume cuz he is using fgets, feof...ftell and fseek are defined. o
they should be defined.
Code
-------------------
long filesize( FILE *fp )
{
if (fp==NULL) return 0L;
fseek( fp, 0, SEEK_END );
return ftell(fp);
}
-------------------
-
MarcSmit
-----------------------------------------------------------------------
Posted via
http://www.codecomments.co
-----------------------------------------------------------------------