High-level I/O for binary data