complete text read code