Read-only fix for ReadBinaryFile