Simplified to handle file directory fragmentation better, with side effect of no longer needing the code to align to sector boundaries.
Changed to open file in read only mode, not read-write mode.