simplified reading/writing of single-chunk data