Update openFile{Read,Write} to write entire handle