View Single Post
Old 2nd February 2019, 14:29   #14  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Originally Posted by Groucho2004 View Post
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;
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote