Quote:
Originally Posted by Groucho2004
By the way, getting the file size is as simple as this
|
And simple as this without the plugin stuff, not really much worse/bigger.
Code:
FILE * fp=NULL;
__int64 sz64=0;
if(!(fp=fopen(fn, "rb" ))) env->ThrowError("%sCannot Open Filename",myName);
bool err = (_fseeki64(fp,0,SEEK_END)!=0||(sz64=_ftelli64(fp))<0);
fclose(fp); fp=NULL;