read file by block