Good call. 

> Returns the number of bytes read, zero on EOF, or < 0 on error.

I'll add something like
`if (result < 0) {
    NSLOG("Error reading file %s", moduleIdFile->getCString());
    return NULL;
}`