Try looking up the documentation for the file type, some of them have the size or length in the beginning of the file in a sort of file header. If you can find that, you can open it up as a binary stream and find the file length. No more obvious ways come to mind.
Comment