Read a chunk from a file