Implement readSection function.