View Single Post
Old 2nd February 2019, 16:00   #15  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by StainlessS View Post
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...
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 2nd February 2019 at 16:04.
Groucho2004 is offline   Reply With Quote