Read a little from the beginning and the end of the file.