• Hi,

    Right now you'll have to find out the file size by just reading bytes until you reach the end of the file I'm afraid. I've put an issue on GitHub for it though, and will try and add something.

    To try and stay like node.js, I'll probably just use something like require('fs').statSync("myfile.txt")

    For rewinding, you'll have to reopen the file (as you're doing). I'm not sure re-opening it is that much slower than a seek, but I'll look at adding one.


Avatar for Gordon @Gordon started