Implement file.readchunks() method with chunk generator