Read and write bytes