Fixed readAll and writeAll for OSX to allow multiple calls to be completed in a run.