Unified I/O for reading data