<?php //... $ch_from=0; $ch_to=100; $cont=file_get_contents('read.txt'); echo substr($cont, $ch_from, $ch_to); //... ?>