Quote:
Originally Posted by StainlessS
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;
|
Sure. I just like to ask the OS directly if possible. Different strokes...