Write and Read hex operations on OS X binary files