Implementation of client reading in a file